private async Task Create() { await TransTypeRepo.CreateTransType(_transType); ToastService.ShowSuccess($"Action successful." + $"TransType \"{_transType.Trans_Type}\" successfully added."); _transType = new TransType(); _editContext.OnValidationStateChanged += ValidationChanged; _editContext.NotifyValidationStateChanged(); }
protected async override Task OnInitializedAsync() { //await base.OnInitializedAsync(); Customer = await CustomerRepo.GetCustomer(CustomerId); transTypesList = (await TransTypeRepo.GetTransTypes()).ToList(); //Transaction type list only displays the relevent trans types to adding a credit addCreditList = transTypesList.Where(x => x.Trans_Type == "RST Purchased" || x.Trans_Type == "Onsite Purchased"); }
protected override async Task OnInitializedAsync() { Customer = await CustomerRepo.GetCustomer(CustomerId); transTypeList = (await TransTypeRepo.GetTransTypes()).ToList(); //Transaction type list only displays the relevent trans types to recording a session recordSessionList = transTypeList.Where(x => x.Trans_Type == "RST Used" || x.Trans_Type == "Onsite Used"); employeeList = (await EmployeeRepo.GetEmployees()).ToList(); //EmployeeId = _audit.EmployeeId.ToString(); }