public IEnumerable<Port_Trans> Get(string portfolioNumber, string transType) { IEnumerable<Port_Trans> transactions = null; PortTransRepository repository = null; try { repository = new PortTransRepository(); transactions = repository.GetAll().Where(record => record.TransType == transType && record.Portfolio_ == portfolioNumber).ToList<Port_Trans>(); } catch (Exception ex) { } return transactions; }