using Common; using Repository.Utility; namespace Business.Utility { public class UtilityBusiness : IUtilityBusiness { private readonly IUtilityRepository _repo; public UtilityBusiness(IUtilityRepository repository) { _repo = repository; } public JsonRxResponse GetKoreanBanks() { var ls = this._repo.GetKoreanBanks(); if (ls.Count > 0) { return new JsonRxResponse { ErrorCode = "0", Msg = "Success", Data = ls }; } return new JsonRxResponse { ErrorCode = "1", Msg = "Could not get the banks." }; } } }