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.

38 lines
1.1 KiB

1 year ago
  1. using Common;
  2. using Common.Helper;
  3. using Common.Model;
  4. using log4net;
  5. using System.Collections.Generic;
  6. namespace Repository.Utility
  7. {
  8. public class UtilityRepository : IUtilityRepository
  9. {
  10. private readonly Dao _dao;
  11. private static readonly ILog Log = LogManager.GetLogger(typeof(UtilityRepository));
  12. public UtilityRepository()
  13. {
  14. _dao = new Dao();
  15. }
  16. public IList<Koreanbank> GetKoreanBanks()
  17. {
  18. var sql = "SELECT BankName as Name,bankCode as Code,rowId,IsActive FROM dbo.KoreanBankList(NOLOCK) WHERE ISNULL(IsActive,'') = '1'";
  19. var dt = _dao.ExecuteDataTable(sql);
  20. var ls = Mapper.DataTableToClass<Koreanbank>(dt);
  21. return ls;
  22. }
  23. public JsonRxResponse SaveKeyPair(string clientkey, string serverkey)
  24. {
  25. //return string should be clientKey:serverkey:timestamp
  26. return null;
  27. }
  28. public string GetKeys(string clientkey, string serverkey, string timestamp)
  29. {
  30. return "";
  31. }
  32. }
  33. }