Example #1
0
        public Task OnUpdate(IEnumerable <RegisterEntry> entries)
        {
            Entries = entries.ToList();
            SelectedRegister.RegisterEntries = Entries;
            SelectedRegister.Balance();

            return(Task.CompletedTask);
        }
Example #2
0
        public async Task OnRegisterSelected(string selectedId)
        {
            int id = int.Parse(selectedId);

            SelectedRegister = await _dataService.Get(id, includeRelated : false);

            string suppQueryStr = $"registerId={id}";
            var    result       = await _registerEntriesDataService.Get(
                includeRelated : true,
                supplementalQueryStr : suppQueryStr);

            SelectedRegister.RegisterEntries = result.ToList();
            SelectedRegister.Balance();
        }