public ICollection<TransactionDirection> GetTransactionDirections() { var repository = new TransactionDirectionRepository(_db); return repository.GetAll().ToList(); }
public TransactionDirection GetTransactionDirection(int Id) { var repository = new TransactionDirectionRepository(_db); return repository.FindBy(c => c.Id == Id).SingleOrDefault(); }