public IActionResult Get(string id) { var model = _service.GetCode(id); if (model == null) { throw new NotFoundException("ICD10 Code does not exists"); } else { var responseModel = ICD10ResponseCodeModel.BuildResponseItem(model); return(Ok(new { ICD10Code = responseModel })); } }