public HttpResponseMessage GetAllUnReceivedPaymentList() { var unReceivedPayment = receiveRepository.GetAllUnReceivedPaymentList(); var formatter = RequestFormat.JsonFormaterString(); return(Request.CreateResponse(HttpStatusCode.OK, unReceivedPayment, formatter)); }