Ejemplo n.º 1
0
        public ActionResult Crud(int id)
        {
            if (id != 0)
            {
                testimonio = testimonio.Obtener(id);
            }

            return(View(testimonio));
        }
Ejemplo n.º 2
0
        public ActionResult Crud(int id = 0)
        {
            Testimonio testmonio = new Testimonio();

            testimonio.Usuario_id = 3;
            if (id != 0)
            {
                testimonio = testimonio.Obtener(id);
            }
            return(View(testimonio));
        }
        public ActionResult crud(int id = 0)
        {
            if (id == 0)
            {
                testimonio.Usuario_id = SessionHelper.GetUser();
            }
            else
            {
                testimonio = testimonio.Obtener(id);
            }

            return(View(testimonio));
        }
Ejemplo n.º 4
0
 public ActionResult Crud(int id = 0)
 {
     return(View(testimonio.Obtener(id)));
 }