コード例 #1
0
 public async Task UpdateRate(RegisterRate command)
 {
     try
     {
         await _client.UpdateRate(command);
     }
     catch (System.Exception e)
     {
         throw e.InnerException;
     }
 }
コード例 #2
0
 public async Task <IActionResult> Update([FromForm] ContractManagementNewViewModel inputModel)
 {
     if (ModelState.IsValid)
     {
         return(await _resiliencyHelper.ExecuteResilient(async() =>
         {
             RegisterRate cmd = Mapper.Map <RegisterRate>(inputModel.Rate);
             await _contractManagementAPI.UpdateRate(cmd);
             return RedirectToAction("Index");
         }, View("Offline", new ContractManagementOfflineViewModel())));
     }
     else
     {
         return(View("New", inputModel));
     }
 }