常用方法
常用方法
常用方法
常用方法
public async Task <ActionResult <EmbeddedResource> > EditEmbeddedResource([FromBody] EmbeddedResource resource) { try { return(await _service.EditEmbeddedResource(resource)); } catch (ControllerNotFoundException e) { return(NotFound(e.Message)); } catch (ControllerBadRequestException e) { return(BadRequest(e.Message)); } catch (ControllerUnauthorizedException) { return(new UnauthorizedResult()); } }