// GetList api/<controller>/5
 public IHttpActionResult GetList(bool isActive, long customerId, int?pageNo = null, int?pageSize = null)
 {
     if (pageNo == null || pageSize == null || (pageNo == null && pageSize == null))
     {
         var obj = _haulierService.GetList(isActive, customerId);
         if (obj == null)
         {
             return(Content(HttpStatusCode.NotFound, $"No data found"));
         }
         return(Ok(obj));
     }
     else
     {
         var obj = _haulierService.GetList(isActive, customerId, (int)pageNo, (int)pageSize);
         if (obj == null)
         {
             return(Content(HttpStatusCode.NotFound, $"No data found"));
         }
         return(Ok(obj));
     }
 }