예제 #1
0
        public SchoolEditViewModel Update(SchoolEditViewModel SchoolEditViewModel)
        {
            School School = SchoolRepo.Update(SchoolEditViewModel.ToModel());

            unitOfWork.commit();
            return(School.ToEditableViewModel());
        }
예제 #2
0
        public SchoolEditViewModel Update(SchoolEditViewModel P)
        {
            School PP = SchoolRepo.Update(P.ToModel());

            unitOfWork.Submit();
            return(PP.ToEditableViewModel());
        }