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"); }
public StudentData(ArmyTechDB context) { _context = context; }