public CalculateModel EntityToUI(tbCurrencyRate rate) { CalculateModel rateUI = new CalculateModel(); //tbCurrency rateUI.Currency = rate.tbCurrency.cCurrencyLong; rateUI.Name = rate.tbBank.cName; rateUI.Rate = rate.tbRate.cRate; //rate curr return rateUI; }
public GraphModel EntityToUI(tbCurrencyRate graph) { GraphModel graphUI = new GraphModel(); //tbAddress graphUI.Date = graph.tbRate.cDate; graphUI.Bank = graph.tbBank.cName; graphUI.Currency = graph.tbCurrency.cCurrencyLong; graphUI.Rate = graph.tbRate.cRate; return graphUI; }
public RateByValidModel EntityToUI(tbCurrencyRate rate) { RateByValidModel rateUI = new RateByValidModel(); //tbCurrency rateUI.Currency = rate.tbCurrency.cCurrencyLong.ToString(); //tbRate rateUI.Valid = rate.tbRate.cIsValid; rateUI.Rate = rate.tbRate.cRate; rateUI.Date = rate.tbRate.cDate; rateUI.Name = rate.tbBank.cName; rateUI.Rating = rate.tbBank.cRating; rateUI.IdBank = rate.tbBank.cId; return rateUI; }