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