Exemplo n.º 1
0
        public CreateModel(RazorPagesLesson.Models.StudentsContext context)
        {
            _context = context;

            GenderItems = Enum.GetValues(typeof(GenderType))
                          .Cast <GenderType>()
                          .Select(o => new SelectListItem
            {
                Value = ((int)o).ToString(),
                Text  = o.ToString()
            })
                          .ToList();
        }
Exemplo n.º 2
0
 public DetailsModel(RazorPagesLesson.Models.StudentsContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public IndexModel(RazorPagesLesson.Models.StudentsContext context)
 {
     _context = context;
 }