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); } }
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); } }
public MPMerchantContractModel RetrieveContractSalesRepresentative(int contactId) { IList<MPMerchantContractSalesRepresentativeModel> objDetails = merchantProfileRepository.RetrieveContractSalesRepresentative(contactId); MPMerchantContractModel objContracts = new MPMerchantContractModel(); objContracts.SalesRep = objDetails.ToList(); return objContracts; }
public bool UpdateContractGeneralInformation(MPMerchantContractModel entity) { return merchantProfileRepository.UpdateContractGeneralInformation(entity); }
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 }); }