Beispiel #1
0
        /// <summary>
        /// Method to get a list of Section entity.
        /// </summary>
        /// <param name="op">Sections entities list options to perform query.</param>
        /// <returns>A list of Section entities.</returns>

        public ObservableCollection <SectionEntity> List(SectionOptionsList op)
        {
            using (Db.Context)
            {
                return(new ObservableCollection <SectionEntity>(SectionManager.List(op)));
            }
        }
Beispiel #2
0
        /// <summary>
        /// Method to get a list of Section entities.
        /// </summary>
        /// <param name="op">Sections entities list options to perform query.</param>
        /// <returns>A list of Section entities.</returns>

        public Task <ObservableCollection <SectionEntity> > ListAsync(SectionOptionsList op)
        => Task.Run(() => List(op));