コード例 #1
0
ファイル: BugsController.cs プロジェクト: KupoNinja/BugBox
 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));
     }
 }