public ActionResult <OrderDTO> Get(int id) { if (id <= 0) { return(BadRequest(new { message = "ID is invalid" })); } var re = _orderModel.GetDTO(id); if (re == null) { return(NotFound()); } var ordDetials = _orderModel.GetOrderDetailDTOs(id); re.OrderItems = DataHelper.ParserObjToJson(ordDetials); if (re == null) { return(Problem(statusCode: 500, detail: "Data not exist")); } return(re); }