Пример #1
0
 public async Task <ActionResult <CapturedHashCredential> > EditHashCredential([FromBody] CapturedHashCredential credential)
 {
     try
     {
         return(await _context.EditHashCredential(credential));
     }
     catch (ControllerNotFoundException e)
     {
         return(NotFound(e.Message));
     }
     catch (ControllerBadRequestException e)
     {
         return(BadRequest(e.Message));
     }
     catch (ControllerUnauthorizedException)
     {
         return(new UnauthorizedResult());
     }
 }