public ActionResult SuccessDelete(int id)
 {
     if (_repository.Delete(id))
     {
         Alerts.Type = 9;
     }
     return(RedirectToAction("Index"));
 }
 public JsonResult Delete(int id)
 {
     return(Json(_repository.Delete(id)));
 }