示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
        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);

            }
        }
示例#4
0
 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);
         }
     }
 }
示例#5
0
        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);
            //    }
            //}
        }
示例#6
0
 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);
     }
 }
示例#7
0
 public HttpResponseMessage UpdateCommercialDetails(Int64 merchantId, CommercialVerification cm)
 {
     using (ContractTier ct = new ContractTier())
     {
         ct.UpdateCommercialDetails(merchantId, cm);
         return Request.CreateResponse(HttpStatusCode.OK);
     }
 }
示例#8
0
 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);
     }
 }
示例#9
0
 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);
     }
 }
示例#10
0
 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());
     }
 }
示例#11
0
 public HttpResponseMessage RetrieveAnnualSalesFile(long merchantId, long contractId)
 {
     using (ContractTier obj = new ContractTier())
     {
         return Request.CreateResponse(HttpStatusCode.OK, obj.RetrieveAnnualSalesFile(merchantId, contractId));
     }
 }
示例#12
0
 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);
     }
 }
示例#13
0
 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);
     }
 }
示例#14
0
 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);
     }
 }
示例#15
0
 public HttpResponseMessage GetBankNames()
 {
     IList<BankNameModel> response;
     using (ContractTier dT = new ContractTier())
     {
         response = dT.ListBankNames();
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
示例#16
0
 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);
         }
     }
 }
示例#17
0
 public HttpResponseMessage GetAdminExp(Int64 ContractId)
 {
     using (ContractTier dt = new ContractTier())
     {
         var response = dt.GetAdminExp(ContractId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
示例#18
0
        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;
        }