コード例 #1
0
 public IActionResult DeleteKnifeStore(string id)
 {
     try
     {
         knifeStoreLogic.DeleteKesBolt(id);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(StatusCode(400, $"Bad request error: {ex}"));
     }
 }
コード例 #2
0
 //KesBolt Törlés
 public IActionResult DeleteKesBolt(string id)
 {
     KnifeStoreLogic.DeleteKesBolt(id);
     return(RedirectToAction(nameof(ListKesBolt)));
 }