public ActionResult DeleteSesion(int id, String name) { String path = Server.MapPath("~/images/Sesion"); ToolImage.DeleteFolder(path, name); this.repoSesion.DeleteSesion(id); return(RedirectToAction("Sesion")); }
public ActionResult DeleteSesion(int id, String name) { String path = prov.MapPath(Folders.Session, name); ToolImage.DeleteFolder(path); this.repoSesion.DeleteSesion(id); return(RedirectToAction("Sesion")); }