public ActionResult Delete(int id) { try { _designService.Delete(id); _designService.CommitChanges(); AlertSuccess(InfoString.DELETE_SUCCESSFULL); } catch (Exception ex) { Log(ex); AlertError(InfoString.ERROR_SYSTEM); } return(RedirectToAction("Index")); }
public void Delete(int id) { _service.Delete(id); }