public HttpResponseMessage GetAllPaymentReceivedList(DateTime fromDate, DateTime toDate, long partyId) { var specificReceivedPaymentByDateFilter = receiveRepository.GetAllPaymentReceivedList(fromDate, toDate, partyId); var formatter = RequestFormat.JsonFormaterString(); return(Request.CreateResponse(HttpStatusCode.OK, specificReceivedPaymentByDateFilter, formatter)); }