public SchoolEditViewModel Update(SchoolEditViewModel SchoolEditViewModel) { School School = SchoolRepo.Update(SchoolEditViewModel.ToModel()); unitOfWork.commit(); return(School.ToEditableViewModel()); }
public SchoolEditViewModel Update(SchoolEditViewModel P) { School PP = SchoolRepo.Update(P.ToModel()); unitOfWork.Submit(); return(PP.ToEditableViewModel()); }