/// <summary>
 /// Update Documents for a Merchant
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool UpdateDocument(DocumentsModel model)
 {
     return new DataAccess.DataAccess().ExecuteNonQuery("AVZ_DOC_spUpdateDocs", new { DocumentTypeID = model.documentTypeId, MerchantID = model.merchantId, ContractId = model.contractId, FileName = model.fileName, FileDetails = model.fileDetails, UploadUserId = model.uploadUserId, DocumentId = model.documentId,StatusId= model.StatusId });
 }
 /// <summary>
 /// To retrieve all documents types related to a WorkflowId
 /// </summary>
 /// <param name="workflowId"></param>
 /// <returns></returns>
 public IList<DocumentsModel> ListDocumentTypes(int workflowId)
 {
     DocumentsModel model = new DocumentsModel();
     return new DataAccess.DataAccess().ExecuteReader<DocumentsModel>("AVZ_DOC_spListDocTypes", new { WorkflowId = workflowId });
 }
 public bool Update(DocumentsModel entity)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// To retrieve all documents related to a MerchantId
 /// </summary>
 /// <param name="merchantId"></param>
 /// <param name="documentTypeId"></param>
 /// <returns></returns>
 public IList<DocumentsModel> ListDocuments(Int64 merchantId,Int64 contractId, int documentTypeId)
 {
     DocumentsModel model = new DocumentsModel();
     return new DataAccess.DataAccess().ExecuteReader<DocumentsModel>("AVZ_DOC_spListDocs", new { MerchantID = merchantId, ContractId = contractId, DocumentTypeId = documentTypeId });
 }
 public bool Create(DocumentsModel model)
 {
     return true;
 }
Exemple #6
0
 /// <summary>
 /// Update Documents for a Merchant
 /// </summary>
 /// <param name="Model"></param>
 /// <returns></returns>
 public bool UpdateDocument(DocumentsModel Model)
 {
     return documentsRepository.UpdateDocument(Model);
 }
Exemple #7
0
 /// <summary>
 /// To insert scanned document from Merchants Screen
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool InsertDocuments(DocumentsModel model)
 {
     return documentsRepository.InsertDocuments(model);
 }
 public IList<DocumentsModel> ListDocuments(int documentId)
 {
     DocumentsModel model = new DocumentsModel();
     return new DataAccess.DataAccess().ExecuteReader<DocumentsModel>("AVZ_COL_spPreviewDocument", new { DocumentId = documentId });
 }