Example #1
0
        public ActionResult VerificaInscripcion()
        {
            var RunnerModels = new San_Silvestre.Models.RunnerModel();

            RunnerModels.DocumentTypeAvailables = _runnerManager.GetDocumentTypeDir().Select(x => new SelectListItem {
                Value = x.Key, Text = x.Value
            }).ToList();

            return(PartialView(RunnerModels));
        }
Example #2
0
        // GET: Runner

        public ActionResult RunnerEdit()
        {
            var RunnerModels = new San_Silvestre.Models.RunnerModel();

            RunnerModels.Name             = "";
            RunnerModels.SurName          = "";
            RunnerModels.Email            = "";
            RunnerModels.Club             = "";
            RunnerModels.DNI              = "";
            RunnerModels.GenderAvailables = _runnerManager.GetGenderDir().Select(x => new SelectListItem {
                Value = x.Key, Text = x.Value
            }).ToList();
            RunnerModels.DocumentTypeAvailables = _runnerManager.GetDocumentTypeDir().Select(x => new SelectListItem {
                Value = x.Key, Text = x.Value
            }).ToList();
            //RunnerModels.CompRunner.CategoryId = 0;
            //RunnerModels.CompRunner.CompetitionId = MvcApplication.GlobalCompetitionId;
            return(PartialView(RunnerModels));
        }