Exemplo n.º 1
0
 public IndexModel(MentoringApp.Data.ApplicationDbContext context)
 {
     _context     = context;
     StudentTypes = new SelectList(new List <string> {
         "Any", "Mentee", "Mentor"
     });
     TopList = new SelectList(new List <string> {
         "25", "50", "75", "100", "All"
     });
 }
Exemplo n.º 2
0
        public IndexModel(MentoringApp.Data.ApplicationDbContext context)
        {
            _context = context;

            var values = Enum.GetValues(typeof(Question.QuestionType)).Cast <Question.QuestionType>();

            QuestionTypeText = new String[values.Count()];

            for (int i = 0; i < values.Count(); i++)
            {
                QuestionTypeText[i] = Question.GetDescription(values.ElementAt(i));
            }
        }
Exemplo n.º 3
0
        public CreateModel(MentoringApp.Data.ApplicationDbContext context)
        {
            _context      = context;
            QuestionTypes = new List <SelectListItem>();

            var values = Enum.GetValues(typeof(Question.QuestionType)).Cast <Question.QuestionType>();

            foreach (var v in values)
            {
                SelectListItem item = new SelectListItem
                {
                    Text  = Question.GetDescription(v),
                    Value = v.ToString()
                };

                QuestionTypes.Add(item);
            }
        }
Exemplo n.º 4
0
 public DetailsModel(MentoringApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public EditModel(MentoringApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Exemplo n.º 6
0
 public DeleteAllModel(MentoringApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Exemplo n.º 7
0
 public MatchingModel(MentoringApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }