示例#1
0
 public ActionResult <Bug> CloseBug(string id)
 {
     try
     {
         return(Ok(_bs.CloseBug(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
示例#2
0
 public ActionResult <Bug> Delete(string id)
 {
     try
     {
         var bug = _bs.CloseBug(id);
         return(Ok(bug));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }