Exemplo n.º 1
0
 public IHttpActionResult GetByCompanyId(int idCompany)
 {
     try
     {
         return(Ok(_driverLogic.GetByCompanyId(idCompany)));
     }
     catch (Exception)
     {
         throw new HttpResponseException(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "No fue posible obtener el listado de conductores por el id de la compañia"));
     }
 }