示例#1
0
 public IHttpActionResult PostReply(Reply reply)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest("Invalid data."));
     }
     Task.Run(async() => await _query.AddReply(reply));
     return(Ok());
 }