public HttpResponseMessage ColActivityCheck(Int64 merchantId, Int64 contractId)
 {
     IList<CollectionActivities> response;
     using (CollectionsTier collection = new CollectionsTier())
     {
         response = collection.ColActivityCheck(merchantId, contractId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
 public HttpResponseMessage GetActiveContracts(Int64 merchantId, bool isRNC)
 {
     IList<ActiveContracts> response;
     using (CollectionsTier collection = new CollectionsTier())
     {
         response = collection.ListActiveContractAffiliations(merchantId,isRNC);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
 public HttpResponseMessage DeleteMerchantDocs(string DocumentIds)
 {
     using (CollectionsTier ct = new CollectionsTier())
     {
         if (ct.MrcDeleteDocuments(DocumentIds))
             return this.Request.CreateResponse(HttpStatusCode.OK);
         else
             return this.Request.CreateResponse(HttpStatusCode.NotModified);
     }
 }
 public HttpResponseMessage AssignLawyer(LawyerModel model)
 {
     using (CollectionsTier ct = new CollectionsTier())
     {
         if (ct.AssignLawyersToCollection(model))
             return this.Request.CreateResponse(HttpStatusCode.OK);
         else
             return this.Request.CreateResponse(HttpStatusCode.NotModified);
     }
 }
 public HttpResponseMessage RetriveContractInformation(Int64 merchantId, Int64 contractId)
 {
     IList<CollectionContractInformation> response;
     using (CollectionsTier collection = new CollectionsTier())
     {
         response = collection.RetrieveContractInfo(merchantId, contractId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
 public HttpResponseMessage UpdateLandlords(CollectionLandlordModel model)
 {
     using (CollectionsTier ct = new CollectionsTier())
     {
         if (ct.UpdateMerchantLandlordInformation(model))
             return this.Request.CreateResponse(HttpStatusCode.OK);
         else
             return this.Request.CreateResponse(HttpStatusCode.NotModified);
     }
 }
 public HttpResponseMessage SendCollectionLetter(Int64 merchantId, Int64 contractId)
 {
     IList<GenerateLetter> response;
     using (CollectionsTier ct = new CollectionsTier())
     {
         response=ct.SendCollectionLetter(merchantId, contractId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
 public HttpResponseMessage SavePaymentDetails(CollectionPaymentAgreementModel model)
 {
     using (CollectionsTier ct = new CollectionsTier())
     {
         if (ct.InsertPaymentAgreement(model))
             return this.Request.CreateResponse(HttpStatusCode.OK);
         else
             return this.Request.CreateResponse(HttpStatusCode.NotModified);
     }
 }
 public HttpResponseMessage RetrivePreviewDocument(int documentId)
 {
     IList<DocumentsModel> response;
     using (CollectionsTier ct = new CollectionsTier())
     {
         response = ct.RetrieveDocuments(documentId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Example #10
0
 public HttpResponseMessage RetrivePrevention(Int64 AssignedUserId, decimal? percentage = null)
 {
     IList<PreventionModel> response;
     using (CollectionsTier collection = new CollectionsTier())
     {
         response = collection.RetrivePrevention((decimal)percentage, AssignedUserId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Example #11
0
 public HttpResponseMessage GetLandLordDetails(Int64 merchantId)
 {
     IList<CollectionLandlordModel> response;
     using (CollectionsTier collection = new CollectionsTier())
     {
         response = collection.ListLandLordDetails(merchantId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Example #12
0
 public HttpResponseMessage GetAllLawyers()
 {
     using (CollectionsTier dT = new CollectionsTier())
     {
         var response = dT.RetrieveAllLawyers();
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Example #13
0
 public HttpResponseMessage RetriveCollectionDays(Int64 AssignedUserId, int days)
 {
     IList<CollectionDaysModel> response;
     using (CollectionsTier collection = new CollectionsTier())
     {
         response = collection.ListCollectionbyInactiveDays(days, AssignedUserId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Example #14
0
 public HttpResponseMessage InsUpdateLawyers(CollectionsModel model)
 {
     using (CollectionsTier mt = new CollectionsTier())
     {
         if (mt.InsUpdateLawyers(model.AssignedLawyers))
         {
             return this.Request.CreateResponse(HttpStatusCode.OK);
         }
         else
         {
             return this.Request.CreateResponse(HttpStatusCode.NotModified);
         }
     }
 }
Example #15
0
 public HttpResponseMessage InsertCollectionActivity(CollectionActivityModel model)
 {
     using (CollectionsTier collection = new CollectionsTier())
     {
         if (collection.InsertCollectionActivity(model))
             return this.Request.CreateResponse(HttpStatusCode.OK);
         else
             return this.Request.CreateResponse(HttpStatusCode.InternalServerError);
     }
 }
Example #16
0
 public HttpResponseMessage GetValuesForDays()
 {
     IList<DropDown> response;
     using (CollectionsTier collection = new CollectionsTier())
     {
         response = collection.ListValuesForDays("CollectionScreen", "COL");
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Example #17
0
 public HttpResponseMessage GetPaymentDetails(Int64 merchantId, Int64 contractId)
 {
     IList<CollectionPaymentAgreementModel> response;
     using (CollectionsTier dT = new CollectionsTier())
     {
         response = dT.RetrievePaymentDetails(merchantId, contractId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Example #18
0
 public HttpResponseMessage GetLegalDocuments(Int64 merchantId, Int64 contractId)
 {
     IList<LegalDocuments> response;
     using (CollectionsTier dT = new CollectionsTier())
     {
         response = dT.RetrieveLegalDocuments(merchantId, contractId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Example #19
0
 public HttpResponseMessage RetriveDocument(Int64 merchantId, Int64 contractId, int documentTypeId)
 {
     IList<DocumentsModel> response;
     using (CollectionsTier ct = new CollectionsTier())
     {
         response = ct.RetrieveDocuments(merchantId, contractId, documentTypeId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Example #20
0
 public HttpResponseMessage RetriveOwnerInfo(Int64 merchantId, Int64 contractId)
 {
     IList<OwnerColModel> response;
     using (CollectionsTier collection = new CollectionsTier())
     {
         response = collection.ListOwnerInfo(merchantId, contractId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Example #21
0
 public HttpResponseMessage GetAllLawyersToAssign(Int64 merchantId, Int64 contractId)
 {
     IList<LawyerModel> response;
     using (CollectionsTier dT = new CollectionsTier())
     {
         response = dT.RetrieveAllLawyersToAssign(merchantId, contractId);
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }
Example #22
0
 public HttpResponseMessage GetCollectionActivities()
 {
     IList<DropDown> response;
     using (CollectionsTier dT = new CollectionsTier())
     {
         response = dT.ListCollectionActivities();
         return this.Request.CreateResponse(HttpStatusCode.OK, response);
     }
 }