public IActionResult GetCodes() { try { return Ok(codeService.GetAll()); } catch (Exception) { return BadRequest(); } }
public IEnumerable <Codes> GetAll(string version = DefaultNinVersion, bool tre = false) { return(_codeService.GetAll(base.DbContext, base.GetHostPath(), base.GetVersion(version))); }