コード例 #1
0
 public ActionResult Delete(int id, Instrument instrument)
 {
     try
     {
         _instrumentRepository.Remove(id);
         return(RedirectToAction(nameof(Index)));
     }
     catch
     {
         return(View());
     }
 }