public ActionResult Delete(int id)
 {
     try
     {
         InterviewerService.Delete(id);
     }
     catch (NotFoundException)
     {
         return(HttpNotFound());
     }
     catch (HasRelationsException)
     {
         return(Content("Удаление невозможно."));
     }
     return(RedirectToAction("Index"));
 }
 public string Delete(int id)
 {
     service.Delete(id);
     return("Deleted successfully");
 }