public async Task <ActionResult <Theme> > CreateTheme([FromBody] Theme theme) { try { Theme createdTheme = await _service.CreateTheme(theme); return(CreatedAtRoute(nameof(GetTheme), new { id = createdTheme.Id }, createdTheme)); } catch (ControllerNotFoundException e) { return(NotFound(e.Message)); } catch (ControllerBadRequestException e) { return(BadRequest(e.Message)); } catch (ControllerUnauthorizedException) { return(new UnauthorizedResult()); } }