BusinessLogicLayer.Logic.CreatePost C# (CSharp) Method

CreatePost() public method

public CreatePost ( Post post ) : bool
post Entities.Post
return bool
        public bool CreatePost(Post post)
        {
            post.Rating = 0;
            post.PostId = Guid.NewGuid();
            var atrAdd = "";
            post.CreatedTime = DateTime.Now;
            var tagsLength = post.Tags.Length;

            //Конвертация меточек в строку для бд
            for (int i = 0; i < tagsLength; i++)
            {
                if (i < tagsLength - 1)
                    atrAdd += post.Tags[i] + ",";
                else
                    atrAdd += post.Tags[i];
            }
            post.tmp = atrAdd;
            return _data.CreatePost(post);
        }