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.

24 lines
664 B

1 year ago
  1. using Common;
  2. using Repository.Utility;
  3. namespace Business.Utility
  4. {
  5. public class UtilityBusiness : IUtilityBusiness
  6. {
  7. private readonly IUtilityRepository _repo;
  8. public UtilityBusiness(IUtilityRepository repository)
  9. {
  10. _repo = repository;
  11. }
  12. public JsonRxResponse GetKoreanBanks()
  13. {
  14. var ls = this._repo.GetKoreanBanks();
  15. if (ls.Count > 0)
  16. {
  17. return new JsonRxResponse { ErrorCode = "0", Msg = "Success", Data = ls };
  18. }
  19. return new JsonRxResponse { ErrorCode = "1", Msg = "Could not get the banks." };
  20. }
  21. }
  22. }