public AdminEditViewModel Update(AdminEditViewModel admin) { Admin _admin = AdminRepo.Update(admin.toModel()); unitOfWork.commit(); return(_admin.toEditViewModel()); }
public void Remove(AdminEditViewModel admin) { AdminRepo.Remove(admin.toModel()); unitOfWork.commit(); }