public async Task EditPost(PostServiceModel serviceModel)
        {
            var post = await this._data.Posts
                       .FirstOrDefaultAsync(i => i.PostId == serviceModel.PostId);

            post.Content = serviceModel.Content;

            this._data.Update(post);
            await this._data.SaveChangesAsync();
        }
        public async Task AddPost(PostServiceModel serviceModel)
        {
            var post = new Post
            {
                Content     = serviceModel.Content,
                DatePosted  = serviceModel.DatePosted,
                AuthorId    = serviceModel.Author.Id,
                TaggedUsers = this._taggedUserService.GetTagFriendsInPostsEntities(
                    serviceModel.Author.Id,
                    serviceModel.TaggedFriends
                    .Select(i => i.Id)
                    .ToList())
            };

            if (serviceModel.GroupId != null)
            {
                post.GroupId = serviceModel.GroupId;
            }

            await this._data.Posts.AddAsync(post);

            await this._data.SaveChangesAsync();
        }