コード例 #1
0
        public async Task AddNewRetailerAsync(CreateRetailerRequest RetailerRequest)
        {
            await RetailerService.AddNewRetailerAsync(RetailerRequest);

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