public ActionResult DeleteConfirmed(int id) { UserSud userSud = db.UserSuds.Find(id); db.UserSuds.Remove(userSud); db.SaveChanges(); UsersHelper.DeleteUserSud(userSud.Email); return(RedirectToAction("Index")); }
public ActionResult DeleteConfirmed(int id) { UserSud userSud = db.UserSuds.Find(id); db.UserSuds.Remove(userSud); db.SaveChanges(); UsersHelper.DeleteUserSud(userSud.Email); return(RedirectToAction("Index")); }