private void OnCreateRequest(RequestDialogViewModel requestDialog) { var requestEntityId = Application.Repository.CreateRequest(new RequestEntityData { Date = requestDialog.DateProperty.Value, Description = requestDialog.DescriptionProperty.Value, Value = requestDialog.CalculateValue, CategoryPersistentId = requestDialog.Categories.Value != null ? requestDialog.Categories.Value.EntityId : null }); var requestViewModel = new RequestViewModel(Application, requestEntityId); requestViewModel.Refresh(); Requests.AddValue(requestViewModel); UpdateSaldoForCurrentMonth(); }