Ejemplo n.º 1
0
        public BankTradingInfo GetBankTradingInfo(int bankId)
        {
            TotalAsset           totalAssetsQuery = _totalAssetRepo.GetTotalAssetsInfo(bankId);
            DailyCalculatedLimit ratingQuery      = _dailyCalculatedLimitRepo.GetCalculatedLimit(bankId);
            BankName             bankInfo         = _bankNameRepo.GetBank(bankId);

            BankTradingInfo info = new BankTradingInfo()
            {
                BankName        = totalAssetsQuery.BankName,
                Rating          = totalAssetsQuery.Rating,
                TotalAssets     = totalAssetsQuery.Assets,
                DateApplied     = totalAssetsQuery.DateApplied,
                CalculatedLimit = null,
                Approved        = bankInfo.Approved
            };

            info.CalculatedLimit = CalculateLimit(info.Rating, info.TotalAssets);

            return(info);
        }
 public void Delete(DailyCalculatedLimit item)
 {
     throw new NotImplementedException();
 }
 public DailyCalculatedLimit Update(DailyCalculatedLimit item)
 {
     throw new NotImplementedException();
 }