Beispiel #1
0
 public async Task <IActionResult> Confirm(ConfirmAdvertModel model)
 {
     try
     {
         await _advertstorageservice.Confirm(model);
     }
     catch (KeyNotFoundException)
     {
         return(new NotFoundResult());
     }
     catch (Exception exception)
     {
         return(StatusCode(500, exception.Message));
     }
     return(new OkResult());
 }