Exemple #1
0
 public ActionResult DeleteMagazine(int id)
 {
     try
     {
         _magazineService.DeleteMagazine(id);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
 public ActionResult Delete(string id)
 {
     _service.DeleteMagazine(id);
     return(RedirectToAction("Index", "Magazine"));
 }
Exemple #3
0
 public ActionResult DeleteMagazine(int id)
 {
     _magazineService.DeleteMagazine(id);
     return(RedirectToAction("GetMagazines"));
 }