示例#1
0
 private tbPersonas IsNullnombre(tbPersonas valor)
 {
     if (valor != null)
     {
         return(valor);
     }
     else
     {
         return(new tbPersonas {
             per_Nombres = ""
         });
     }
 }
        public ActionResult Index()
        {
            if (Session["Admin"] == null && Session["Usuario"] == null)
            {
                Response.Redirect("~/Inicio/index");
                return(null);
            }
            tbPersonas tbPersonas = new tbPersonas {
                per_Estado = true
            };

            return(View(tbPersonas));
        }
示例#3
0
 private tbPersonas IsNull(tbPersonas valor)
 {
     if (valor != null)
     {
         return(valor);
     }
     else
     {
         return(new tbPersonas {
             per_Identidad = ""
         });
     }
 }