Ejemplo n.º 1
0
        public IEnumerable <DebugInfo> Get(DebugInfoTypeEnum type)
        {
            var typeToCheck = Convert.ToString(type);

            return(typeToCheck == "All" ? GetAll() : _repository.GetQuery().Where(d => d.Type == typeToCheck).OrderByDescending(d => d.DateCreated));
        }
Ejemplo n.º 2
0
 public DebugInfo(string description, DebugInfoTypeEnum type)
 {
     Description = description;
     Type        = type.ToString();
 }