public StudentEditViewModel GetFilter(int id) { return(StudentRepo?.Get(i => i.ID == id).Select(i => i.ToEditViewModel()).FirstOrDefault()); }
public IEnumerable <NeighborhoodViewModel> GetFilter(int id) { return(NeighborhoodRepo?.Get(i => i.GovernorateId == id).Select(i => i.ToViewModel()).ToList()); }