public IHttpActionResult GetAllSearch(int pageNumber, int pageSize, int?payment_type_id, string code) { ResponseDataDTO <PagedResults <customerorderviewmodel> > response = new ResponseDataDTO <PagedResults <customerorderviewmodel> >(); try { response.Code = HttpCode.OK; response.Message = MessageResponse.SUCCESS; response.Data = _customer_orderservice.GetAllSearch(pageNumber: pageNumber, pageSize: pageSize, payment_type_id: payment_type_id, code); } catch (Exception ex) { response.Code = HttpCode.INTERNAL_SERVER_ERROR; response.Message = "Không tìm thấy"; response.Data = null; Console.WriteLine(ex.ToString()); } return(Ok(response)); }