public async Task <IActionResult> PutPost(int id, CreateAndUpdateHttpPost postModel)
        {
            var post        = postModel.Post;
            var imageBase64 = postModel.Uri;

            if (id != post.Id)
            {
                return(BadRequest());
            }

            _context.Entry(post).State = EntityState.Modified;

            try
            {
                await _postServices.UpdateAsync(post, imageBase64);

                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!PostExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }