protected async Task FormSubmitted() { var model = Converter.Convert(View); await repository.Update(Id, model); await BlazoredModal.CloseAsync(ModalResult.Ok <TModel>(model)); }
public async void Save() { Product.UnitQuantity = NewProductQuantity.UnitQuantityTypeVolume; Product.UnitQuantityType = NewProductQuantity.MeasurementType; //await ProductService.AddProduct(Product); await BlazoredModal.CloseAsync(ModalResult.Ok(Product)); }
public async Task FormSubmitted() { var model = Converter.Convert(View); await Repository.Insert(model); await BlazoredModal.CloseAsync(ModalResult.Ok <TModel>(model)); }
private async void Finish() { await JSRuntime.InvokeVoidAsync("stopScanner"); await BlazoredModal.CloseAsync(ModalResult.Ok(new BarcodeResult { Barcode = BarcodeValue })); }
protected async Task Submit() { var options = new JsonSerializerOptions { Converters = { new HardwareConverter() } }; await HttpClient.PutAsJsonAsync("api/hardware", Command, options); await BlazoredModal.CloseAsync(ModalResult.Ok(Hardware.Id)); }
private async Task Submit() { var hardwareId = await HttpClient.PostJsonAsync <int>("api/hardware", Command); await BlazoredModal.CloseAsync(ModalResult.Ok(hardwareId)); }
protected async Task Submit() { await HttpClient.PutJsonAsync("api/contract", Command); await BlazoredModal.CloseAsync(ModalResult.Ok(Contract.Id)); }
public async void Save() { await ProductService.AddQuantityToProduct(NewProductQuantity, Product); await BlazoredModal.CloseAsync(ModalResult.Ok(NewProductQuantity)); }
private async Task Close() => await BlazoredModal.CloseAsync(ModalResult.Ok(true));
public async void Ok() { await RecipeService.InsertIngredients(myProductsToAdd); await BlazoredModal.CloseAsync(ModalResult.Ok(myProductsToAdd)); }
public async void Save() { await BlazoredModal.CloseAsync(ModalResult.Ok(Value)); }
private async Task Close(bool response) { await BlazoredModal.CloseAsync(ModalResult.Ok(response)); }