public Response DailyOrderDateRange(string token, string user) { Response response = new Response(); if (string.IsNullOrEmpty(token) || !token.Equals(_token)) { response.code = "404"; response.message = "Invild token"; } else { var data = PurchaseHelper.GetOrderDateRange("DailyPO", user); if (data == null) { response.code = "500"; response.message = "No Data"; } else { response.code = "200"; response.content = data; } } return response; }