Example #1
0
 public ActionResult Registro()
 {
     ViewBag.IdColonia     = new SelectList(IcoloniaBusiness.GetColonias(), "id", "strAsentamiento");
     ViewBag.IdSeccion     = new SelectList(IseccionBusiness.GetSeccion(), "id", "strNombre");
     ViewBag.IdZona        = new SelectList(IzonaBusiness.GetZonas(), "id", "strNombre");
     ViewBag.IdEstrategias = new SelectList(IestrategiaBusiness.GetEstrategias(), "id", "strNombre");
     return(View());
 }
        public ActionResult Registro()
        {
            var identity = (ClaimsPrincipal)Thread.CurrentPrincipal;

            if (!identity.IsInRole("Administrador"))
            {
                ViewData["Direccion.IdColonia"] = new SelectList(IcoloniaBusiness.GetColonias(), "id", "strAsentamiento");
                return(View());
            }
            return(RedirectToAction("Registros", "Movilizado"));
        }
 public ActionResult Registro()
 {
     ViewData["Direccion.idColonia"] = new SelectList(IcoloniaBusiness.GetColonias(), "id", "strAsentamiento");
     return(View());
 }