private async void LoadSupplements() { if (SelectedPayroll != null) { if (SelectedPayroll.Oib == null) { Supplements = null; } else { var suppl = await _payrollSupplementEmployeeEndpoint.GetByOib(SelectedPayroll.Oib); Supplements = new ObservableCollection <PayrollSupplementEmployeeModel>(suppl); SumOfSupplements = Supplements.Sum(x => x.Iznos); } } }
private async void LoadEmployeeSupplements() { var sup = await _payrollSupplementEmployeeEndpoint.GetByOib(EmployeeOib); EmployeeSupplements = new ObservableCollection <PayrollSupplementEmployeeModel>(sup); }