public IActionResult GetAward(long id) { _logger.LogInformation($"{nameof(AwardController)} : {nameof(GetAward)} was called."); try { var award = _awardService.FindById(id); if (award == null) { return(NotFound("Award was not found")); } return(Ok(award)); } catch (DbException exception) { _logger.LogError(exception.Message); return(BadRequest(exception.Message)); } catch (Exception exception) { _logger.LogError(exception.Message); throw; } }