public async Task AddNewRetailerAsync(CreateRetailerRequest RetailerRequest) { await RetailerService.AddNewRetailerAsync(RetailerRequest); await ModalInstance.CloseAsync(); }
public async Task AddNewRetailerAsync(CreateRetailerRequest RetailerRequest) { var RetailerRequestJson = new StringContent(JsonSerializer.Serialize(RetailerRequest), Encoding.UTF8, "application/json"); await HttpClient.PostAsync($"retailer", RetailerRequestJson); }
protected override void OnInitialized() { Retailer = new CreateRetailerRequest(); }