public IActionResult GetStyle(long id) { _logger.LogInformation($"{nameof(StyleController)} : {nameof(GetStyle)} was called."); try { var styles = _styleService.FindById(id); if (styles == null) { return(NotFound("Style Not Found")); } return(Ok(styles)); } catch (DbException exception) { _logger.LogError(exception.Message); return(BadRequest(exception.Message)); } catch (Exception exception) { _logger.LogError(exception.Message); throw; } }