Ejemplo n.º 1
0
        public ActionResult CreateUpdateAccount(int id = 0)
        {
            CreateUpdateDropdownlist();
            var model = userService.GetSingle(id);

            return(View(model));
        }
Ejemplo n.º 2
0
 public ActionResult CreateUpdateAccount(int id = 0)
 {
     AccountDropdownlist();
     if (id > 0)
     {
         var model = userService.GetSingle(id);
         return(View(model));
     }
     else
     {
         return(View());
     }
 }