示例#1
0
        public async Task <string> GetPost([FromQuery] int postid)
        {
            var Post = await _context.GetPostAsync(postid);

            return(JsonConvert.SerializeObject(new { Post }, ControllersServices.JsonSettings));
        }