コード例 #1
0
 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);
     }
 }
コード例 #2
0
 public HttpResponseMessage RetrieveContractActivities(int contractId, int ProcessorTypeId, string ProcessorNumber, DateTime ActivityStartDate, DateTime ActivityEndDate)
 {
     MPMerchantContractModel response = new MPMerchantContractModel();
     MPMerchantActivityDetailModel innerresponse;
     using (MerchantProfileTier mt = new MerchantProfileTier())
     {
         innerresponse = mt.RetrieveContractActivities(contractId, ProcessorTypeId, ProcessorNumber, ActivityStartDate, ActivityEndDate);
         response.ActivityDetail = innerresponse;
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
コード例 #3
0
        public MPMerchantContractModel RetrieveContractSalesRepresentative(int contactId)
        {
            IList<MPMerchantContractSalesRepresentativeModel> objDetails = merchantProfileRepository.RetrieveContractSalesRepresentative(contactId);
            MPMerchantContractModel objContracts = new MPMerchantContractModel();
            objContracts.SalesRep = objDetails.ToList();

            return objContracts;
        }
コード例 #4
0
 public bool UpdateContractGeneralInformation(MPMerchantContractModel entity)
 {
     return merchantProfileRepository.UpdateContractGeneralInformation(entity);
 }
コード例 #5
0
 public bool UpdateContractGeneralInformation(MPMerchantContractModel entity)
 {
     return new DataAccess.DataAccess().ExecuteNonQuery("avz_MRC_spUpdateMerchantContractGeneralInformation", new
     {
         contractId = entity.ContractId,
         RetentionPercentage = entity.RetentionPercentage,
         RetentionChangeReason = entity.RetentionChangeReason,
         UserId=entity.UserId
     });
 }