// 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)); }
/// <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))); }
/// <summary> /// The get. /// </summary> /// <returns> /// </returns> public IEnumerable <ColorMap> Get() { var manager = new ColorMapManager(); return(manager.Get()); }