public HttpResponseMessage GetPaymentHistory(string from_date, string to_date) { var allPaymentHistory = receiveRepository.PaymentHistory(from_date, to_date); var formatter = RequestFormat.JsonFormaterString(); return(Request.CreateResponse(HttpStatusCode.OK, allPaymentHistory, formatter)); }