public async Task <string> CreateOrEdit([FromQuery] int postid, [FromBody] Post post) { if (postid <= 0) { await _context.AddNewPostAsync(post, User.Identity.Name); } else { await _context.EditPostAsync(post, postid); } return("true"); }