Exemplo n.º 1
0
        public SchoolEditViewModel Update(SchoolEditViewModel SchoolEditViewModel)
        {
            School School = SchoolRepo.Update(SchoolEditViewModel.ToModel());

            unitOfWork.commit();
            return(School.ToEditableViewModel());
        }
Exemplo n.º 2
0
        public SchoolEditViewModel Update(SchoolEditViewModel P)
        {
            School PP = SchoolRepo.Update(P.ToModel());

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