public HttpResponseMessage CompContractTask(Int64 merchantId, Int64 taskTypeId, Int64 workflowId, Int64 contractId) { using (ContractTier dT = new ContractTier()) { var response = dT.CompleteContractTask(merchantId, taskTypeId, workflowId, contractId); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public HttpResponseMessage ContractFunded(FundingModel model) { using (ContractTier obj = new ContractTier()) { if (obj.ContractFunded(model)) return Request.CreateResponse(HttpStatusCode.OK); else return this.Request.CreateResponse(HttpStatusCode.NotModified); } }
public HttpResponseMessage DeclineContract([FromBody] DeclineModel entity, Int64 contractid) { using (ContractTier contracttier = new ContractTier()) { contracttier.DeclineContract(contractid, entity.declinereason, entity.workflowId, entity.declineNotes, entity.IsReEvaluvate, entity.merchantId, entity.Screen); return Request.CreateResponse(HttpStatusCode.OK); } }
public HttpResponseMessage UpdateVerificationCall(VerificationModel call, long contractId, Int16 isCompleted) { using (ContractTier dT = new ContractTier()) { if (dT.UpdateVeriCall(call, contractId, isCompleted, call.ScriptFile)) { return this.Request.CreateResponse(HttpStatusCode.OK); } else { return this.Request.CreateResponse(HttpStatusCode.NotModified); } } }
public HttpResponseMessage UpdateLandlordVerification(VerificationModel model, long contractId, Int16 isCompleted) { using (ContractTier dT = new ContractTier()) { if (dT.UpdateLandLordVeri(model, contractId, isCompleted, model.ScriptFile)) { return this.Request.CreateResponse(HttpStatusCode.OK); } else { return this.Request.CreateResponse(HttpStatusCode.NotModified); } } //using (QuestionTier mt = new QuestionTier()) //{ // long workflowId = 2; // Int64 taskTypeId = 14; // string entity = "Landlord"; // var listAnswers = new List<QuestionsModel>(); // //foreach (var c in call.questions) // //{ // // // c.scriptFile = call.ScriptFile; // // c.entity = entity; // // listAnswers.Add(c); // //} // if (mt.InsUpdateAnswers(listAnswers, taskTypeId, workflowId, isCompleted, entity, call.ScriptFile)) // { // return this.Request.CreateResponse(HttpStatusCode.OK); // } // else // { // return this.Request.CreateResponse(HttpStatusCode.NotModified); // } //} }
public HttpResponseMessage UpdateCommericalOwnerDetails(Int64 contractId, Int64 merchantId, List<OwnerModel> cm) { using (ContractTier dT = new ContractTier()) { var response = dT.UpdateCommericalOwnerDetails(contractId, merchantId, cm); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public HttpResponseMessage UpdateCommercialDetails(Int64 merchantId, CommercialVerification cm) { using (ContractTier ct = new ContractTier()) { ct.UpdateCommercialDetails(merchantId, cm); return Request.CreateResponse(HttpStatusCode.OK); } }
public HttpResponseMessage GetBankDetails(Int64 contractId, Int64 merchantId, int bankId = 0) { IList<BankDetailModel> response; using (ContractTier dT = new ContractTier()) { response = dT.RetrieveBankDetails(contractId, merchantId, bankId); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public HttpResponseMessage SaveFinalValidation(long ContractId, string str) { using (ContractTier obj = new ContractTier()) { if (obj.SaveFinalValidation(ContractId, str)) return Request.CreateResponse(HttpStatusCode.OK); else return this.Request.CreateResponse(HttpStatusCode.NotModified); } }
public HttpResponseMessage RetrieveFinalValidation(long MerchantId, long ContractId) { IList<FinalVerificationModel> model; using (ContractTier obj = new ContractTier()) { model = obj.RetrieveFinalValidation(MerchantId, ContractId); return Request.CreateResponse(HttpStatusCode.OK, model.FirstOrDefault()); } }
public HttpResponseMessage RetrieveAnnualSalesFile(long merchantId, long contractId) { using (ContractTier obj = new ContractTier()) { return Request.CreateResponse(HttpStatusCode.OK, obj.RetrieveAnnualSalesFile(merchantId, contractId)); } }
public HttpResponseMessage GetVerificationCall(Int64 contractId, Int64 merchantId) { using (ContractTier dT = new ContractTier()) { var response = dT.RetrieveVerificationCall(contractId, merchantId); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public HttpResponseMessage GetFundingDetails(Int64 contractId, Int64 merchantId) { // IList<FundingModel> response; using (ContractTier dT = new ContractTier()) { var response = dT.RetrieveFundingDetails(contractId, merchantId); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public HttpResponseMessage GetCorporateDocumemts(Int64 contractId, Int64 merchantId) { using (ContractTier dT = new ContractTier()) { var response = dT.RetrieveCorpDetails(contractId, merchantId); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public HttpResponseMessage GetBankNames() { IList<BankNameModel> response; using (ContractTier dT = new ContractTier()) { response = dT.ListBankNames(); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public HttpResponseMessage UpdateBankDetails(BankDetailModel bankDetail, Int16 isCompleted) { using (ContractTier ct = new ContractTier()) { if (ct.UpdateBankDetails(bankDetail, isCompleted)) { return this.Request.CreateResponse(HttpStatusCode.OK); } else { return this.Request.CreateResponse(HttpStatusCode.NotModified); } } }
public HttpResponseMessage GetAdminExp(Int64 ContractId) { using (ContractTier dt = new ContractTier()) { var response = dt.GetAdminExp(ContractId); return this.Request.CreateResponse(HttpStatusCode.OK, response); } }
public VerificationModel RetrieveVerificationDetails(Int64 contractId, Int64 merchantId, string entity) { var t = new DataAccess.DataAccess().ExecuteReader<QuestionsModel, VerificationModel>("avz_cnt_RetriveVeriCall", new { ContractId = contractId, Entity = entity }); var vc = t.Item2.Count > 0 ? t.Item2[0] : new VerificationModel(); vc.questions = t.Item1; MerchantDetailQuestionModel mod = new MerchantDetailQuestionModel(); using (ContractTier dT = new ContractTier()) { mod = dT.GetMerchantDetailsForVerification(merchantId); } vc.MerchantDetails = mod; return vc; }