public AdminViewModel(DbContext context, RoomViewModel roomViewModel, ServiceTypeViewModel serviceTypeViewModel, EmployeeViewModel employeeViewModel) { this.context = context; EmployeeViewModel = employeeViewModel; RoomViewModel = roomViewModel; ServiceTypeViewModel = serviceTypeViewModel; }
public void Update() { RoomViewModel.OnUpdate(null, null); ServiceTypeViewModel.OnUpdate(null, null); EmployeeViewModel.OnUpdate(null, null); }