Exemplo n.º 1
0
 public IActionResult GetCustomerByBusiness(int businessid)
 {
     try
     {
         return(new JsonResult(CustomerBAL.GetCustomerByBusinessID(businessid)));
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, "Failed to get Customer"));
     }
 }