Beispiel #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"
     });
 }
Beispiel #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));
            }
        }
Beispiel #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);
            }
        }
Beispiel #4
0
 public DetailsModel(MentoringApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #5
0
 public EditModel(MentoringApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #6
0
 public DeleteAllModel(MentoringApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }
Beispiel #7
0
 public MatchingModel(MentoringApp.Data.ApplicationDbContext context)
 {
     _context = context;
 }