public IHttpActionResult GetInforById(int id) { ResponseDataDTO <customerordermodelview> response = new ResponseDataDTO <customerordermodelview>(); try { response.Code = HttpCode.OK; response.Message = MessageResponse.SUCCESS; response.Data = _customer_orderservice.GetAllOrderById(id); } catch (Exception ex) { response.Code = HttpCode.INTERNAL_SERVER_ERROR; response.Message = ex.Message; response.Data = null; Console.WriteLine(ex.ToString()); } return(Ok(response)); }