示例#1
0
 public ActionResult <Bug> Post([FromBody] Bug value)
 {
     try
     {
         return(Ok(_repo.Create(value)));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }