protected override void Initialize(RequestContext requestContext) { IEnumerable<string> items = new string[] { "Femenino", "Masculino" }; ViewData["Alumno.Sexo"] = new SelectList(items); if (FormsService == null) { FormsService = new FormsAuthenticationService(); } if (MembershipService == null) { MembershipService = new AccountMembershipService(); } base.Initialize(requestContext); }
protected override void Initialize(RequestContext requestContext) { IEnumerable<string> items = new string[] { "Femenino", "Masculino" }; ViewData["Alumno.Sexo"] = new SelectList(items); items = new string[] { "Estudiante", "Profesor" }; ViewData["Tipo"] = new SelectList(items); if (FormsService == null) { FormsService = new FormsAuthenticationService(); } if (MembershipService == null) { MembershipService = new AccountMembershipService(); } ViewData["PasswordLength"] = MembershipService.MinPasswordLength; ViewData["Pais"] = new SelectList(GetCountryList()); _fechaActual = DateTime.Now; _periodoActual = Helper.CalcularPeriodoActual(); base.Initialize(requestContext); }