Exemple #1
0
 public ActionResult Delete(Guid id)
 {
     try
     {
         StatusTypeService.Delete(id);
     }
     catch (NotFoundException)
     {
         return(HttpNotFound());
     }
     catch (HasRelationsException)
     {
         return(Content("Удаление невозможно."));
     }
     return(RedirectToAction("Index"));
 }