Ejemplo n.º 1
0
 public IActionResult GetBA(int id)
 {
     if (id >= 1000)
     {
         return(GetBAWithAccNum(id));
     }
     try
     {
         var ba = _baRepository.GetBA(id);
         return(new OkObjectResult(ba));
     }catch (Exception ex)
     {
         return(BadRequest(new { message = ex.Message }));
     }
 }