AppActs.Client.Repository.ApplicationRepository.FindAll C# (CSharp) Method

FindAll() public method

public FindAll ( ) : IEnumerable
return IEnumerable
        public IEnumerable<Application> FindAll()
        {
            try
            {
                return this.GetCollection()
                    .Find(Query<Application>.EQ<bool>(x => x.Active, true))
                    .SetFields(Fields.Exclude("_id"));
            }
            catch (Exception ex)
            {
                throw new DataAccessLayerException(ex);
            }
        }