public void AddVacation(NewVacationRequest newVacantion) { var vacation = SetupVacationRequest(newVacantion); ChangeLocalDataAndRunSync(() => VacationRequestsRepository.Add(vacation)); RaiseVacationAdded(vacation); }
private void AddNewBackendModel(VacantionRequest backendModel) { backendModel.LocalId = backendModel.Id; backendModel.SyncState = SynchronizationState.Synced; VacationRequestsRepository.Add(backendModel); }