public StudentEditViewModel Add(StudentEditViewModel e)
 {
     StudentRepo.Add(e.ToModel());
     UnitOfWork.commit();
     return(e);
 }
 public GovernorateEditViewModel Add(GovernorateEditViewModel e)
 {
     GovernorateRepo.Add(e.ToModel());
     UnitOfWork.commit();
     return(e);
 }
Beispiel #3
0
 //public IEnumerable<FieldViewModel> GetFilter(int id)
 //{
 //    return FieldRepo?.Get(i => i.DepartmentID == id).Select(i => i.ToViewModel()).ToList();
 //}
 public FieldEditViewModel Add(FieldEditViewModel e)
 {
     FieldRepo.Add(e.ToModel());
     UnitOfWork.commit();
     return(e);
 }
 public NeighborhoodEditViewModel Add(NeighborhoodEditViewModel e)
 {
     NeighborhoodRepo.Add(e.ToModel());
     UnitOfWork.commit();
     return(e);
 }