示例#1
0
        public DataViewModel()
        {
            _context = new ArmyTechDB();

            FieldId        = new SelectList(_context.Fields, "Id", "Name");
            GovernorateId  = new SelectList(_context.Governorates, "Id", "Name");
            NeighborhoodId = new SelectList(_context.Neighborhoods, "Id", "Name");
        }
示例#2
0
 public StudentData(ArmyTechDB context)
 {
     _context = context;
 }