示例#1
0
        public void AddVacation(NewVacationRequest newVacantion)
        {
            var vacation = SetupVacationRequest(newVacantion);

            ChangeLocalDataAndRunSync(() => VacationRequestsRepository.Add(vacation));

            RaiseVacationAdded(vacation);
        }
示例#2
0
        private void AddNewBackendModel(VacantionRequest backendModel)
        {
            backendModel.LocalId = backendModel.Id;

            backendModel.SyncState = SynchronizationState.Synced;

            VacationRequestsRepository.Add(backendModel);
        }