コード例 #1
0
 public ActionResult Read()
 {
     if (Session["Perfil"] != null)
     {
         NegocioPerfil obj = new NegocioPerfil();
         return(View(obj.Read()));
     }
     else
     {
         return(View("../Mantenedor/LoginProcess"));
     }
 }
コード例 #2
0
 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"));
     }
 }
コード例 #3
0
 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"));
     }
 }
コード例 #4
0
 public ActionResult Update(PERFIL dto)
 {
     if (Session["Perfil"] != null)
     {
         NegocioPerfil obj = new NegocioPerfil();
         obj.Update(dto);
         return(RedirectToAction("Read"));
     }
     else
     {
         return(View("../Mantenedor/LoginProcess"));
     }
 }