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"));
        }
Esempio n. 2
0
 public void Delete(int id)
 {
     _service.Delete(id);
 }