You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
3.7 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. using Common.Model.BenificiaryModel;
  2. using Common.Model.CustomerModel;
  3. using Common.Utility;
  4. using Repository.DAO;
  5. using Repository.Repository.OnlineCustomerDao;
  6. using System;
  7. using System.Data;
  8. namespace Business.Customer
  9. {
  10. public class CustomerServices : ICustomerServices
  11. {
  12. private readonly ICustomerRepository _customerRepo;
  13. public CustomerServices(ICustomerRepository customerRepo)
  14. {
  15. _customerRepo = customerRepo;
  16. }
  17. public DbResult AddCustomerSignature(string customerId, string user, string fileName, string signaturetype, string signatureId)
  18. {
  19. return _customerRepo.AddCustomerSignature(customerId, user, fileName, signaturetype, signatureId);
  20. }
  21. public string GetCustomerDetailsForFileUpload(string customerId)
  22. {
  23. return _customerRepo.GetCustomerDetailsForFileUpload(customerId);
  24. }
  25. public DataTable GetAddressByZipCodeNew(string zipCode, string user, string rowId)
  26. {
  27. return _customerRepo.GetAddressByZipCodeNew(zipCode, user, rowId);
  28. }
  29. public DataRow GetCustomerDetails(string customerId, string user)
  30. {
  31. return _customerRepo.GetCustomerDetails(customerId, user);
  32. }
  33. public DataTable GetCustomerDetailsWitDT(string customerId, string user)
  34. {
  35. return _customerRepo.GetCustomerDetailsWitDT(customerId, user);
  36. }
  37. public DataSet GetCustomerInfoFromMembershiId(string user, string membershipId)
  38. {
  39. return _customerRepo.GetCustomerInfoFromMembershiId(user, membershipId);
  40. }
  41. public DataTable GetDetailsForEditCustomer(string customerId, string user)
  42. {
  43. return _customerRepo.GetDetailsForEditCustomer(customerId, user);
  44. }
  45. public DataTable GetDocumentByCustomerId(string customerId)
  46. {
  47. return _customerRepo.GetDocumentByCustomerId(customerId);
  48. }
  49. public DataRow GetRequiredCustomerDetails(string customerId, string user)
  50. {
  51. return _customerRepo.GetRequiredCustomerDetails(customerId, user);
  52. }
  53. public DataSet LoadCustomerDataNew(string user, string customerId, string flag, string sCountryId, string settlementAgent)
  54. {
  55. return _customerRepo.LoadCustomerDataNew(user, customerId, flag, sCountryId, settlementAgent);
  56. }
  57. public DataTable LoadDataPaymentModeDdl(string sCountryid, string pCountry, string collMode, string agentId, string flag, string user)
  58. {
  59. return _customerRepo.LoadDataPaymentModeDdl(sCountryid,pCountry,collMode,agentId,flag,user);
  60. }
  61. public DbResult RegisterCustomerAndReceiver(OnlineCustomerModel onlineCustomerModel, BenificiaryModel beniciaryModel)
  62. {
  63. return _customerRepo.RegisterCustomerAndReceiver(onlineCustomerModel, beniciaryModel);
  64. }
  65. public DbResult RegisterCustomerNew(OnlineCustomerModel onlineCustomerModel)
  66. {
  67. return _customerRepo.RegisterCustomerNew(onlineCustomerModel);
  68. }
  69. public DbResult UpdateBenificiarInformation(BenificiaryModel benificiar, string user)
  70. {
  71. return _customerRepo.UpdateBenificiarInformation(benificiar,user);
  72. }
  73. public DbResult UpdateCustomerDocument(string cdId, string customerId, string fileName, string fileDescription, string fileType, string documentType, string user)
  74. {
  75. return _customerRepo.UpdateCustomerDocument(cdId, customerId, fileName, fileDescription, fileType, documentType, user);
  76. }
  77. }
  78. }