//--------------------------------------------------------- public JoinCompanyStockExchange Get(int key1, string key2) { return(repository.Get(key1, key2)); }
public bool Add(StockPrice stockPrice) { if (c_repository.Get(stockPrice.CompanyId) != null && se_repository.Get(stockPrice.StockExchangeId) != null && c_se_repository.Get(stockPrice.CompanyId, stockPrice.StockExchangeId) != null) { return(repository.Add(stockPrice)); } else { return(false); } }