public ActionResult Read() { if (Session["Perfil"] != null) { NegocioPerfil obj = new NegocioPerfil(); return(View(obj.Read())); } else { return(View("../Mantenedor/LoginProcess")); } }
public ActionResult Update(int ID_PERFIL) { if (Session["Perfil"] != null) { NegocioPerfil obj = new NegocioPerfil(); PERFIL dto = obj.Read().FirstOrDefault(a => a.ID_PERFIL == ID_PERFIL); return(View("Update", dto)); } else { return(View("../Mantenedor/LoginProcess")); } }
public ActionResult Delete(string ID_PERFIL) { if (Session["Perfil"] != null) { NegocioPerfil obj = new NegocioPerfil(); obj.Delete(ID_PERFIL); return(RedirectToAction("Read")); } else { return(View("../Mantenedor/LoginProcess")); } }
public ActionResult Update(PERFIL dto) { if (Session["Perfil"] != null) { NegocioPerfil obj = new NegocioPerfil(); obj.Update(dto); return(RedirectToAction("Read")); } else { return(View("../Mantenedor/LoginProcess")); } }