// // GET: /Account/Register public ActionResult Register(string id, string mensaje) { if (string.IsNullOrEmpty(id)) { id = "0"; } Usuario user = _AccountService.FindUsuariobyID(Convert.ToInt32(id)); ViewBag.Message = mensaje; ViewBag.SucursalList = new SelectList(_CatalogoService.AllSucursales(), "SucursalID", "nombre"); ViewBag.RolList = new SelectList(_AccountService.GetAllRoles(), "rolID", "nombre"); return(View(user)); }