public HttpResponseMessage RetrieveContractHistory(int contractId, DateTime HistoryStartDate, DateTime HistoryEndDate)
 {
     MPMerchantContractModel response= new MPMerchantContractModel();
     MPMerchantHistoryDetailModel innerresponse;
     using (MerchantProfileTier mt = new MerchantProfileTier())
     {
         innerresponse = mt.RetrieveContractHistory(contractId, HistoryStartDate, HistoryEndDate);
         response.HistoryDetail = innerresponse;
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }