public IEnumerable <StudentViewModel> GetAll() { return(StudentRepo?.GetAll().Select(i => i.ToViewModel()).ToList()); }
public IEnumerable <GovernorateViewModel> GetAll() { return(GovernorateRepo?.GetAll().Select(i => i.ToViewModel()).ToList()); }
public IEnumerable <FieldViewModel> GetAll() { return(FieldRepo?.GetAll().Select(i => i.ToViewModel()).ToList()); }
public IEnumerable <NeighborhoodViewModel> GetAll() { return(NeighborhoodRepo?.GetAll().Select(i => i.ToViewModel()).ToList()); }