Esempio n. 1
0
        // GET api/<controller>/5
        /// <summary>
        /// The get.
        /// </summary>
        /// <param name="id">
        /// The predicate.
        /// </param>
        /// <returns>
        /// </returns>
        public ColorMap GetById(int id)
        {
            var manager = new ColorMapManager();

            return(manager.Get().Single(p => p.Id == id));
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public ColorMap GetByName(string name)
        {
            var manager = new ColorMapManager();

            return(manager.Get().Single(p => p.Name.Equals(name, StringComparison.CurrentCultureIgnoreCase)));
        }
Esempio n. 3
0
        /// <summary>
        /// The get.
        /// </summary>
        /// <returns>
        /// </returns>
        public IEnumerable <ColorMap> Get()
        {
            var manager = new ColorMapManager();

            return(manager.Get());
        }