public IEnumerable <TEntity> GetWhere(Func <TEntity, bool> criteria)
        {
            var result = default(IEnumerable <TEntity>);

            using (var context = new CrowdNetDBContext())
            {
                result = context.Set <TEntity>().Where(criteria);
            }
            return(result);
        }
        public TEntity Get(Func <TEntity, bool> criteria)
        {
            var result = default(TEntity);

            using (var context = new CrowdNetDBContext())
            {
                result = context.Set <TEntity>().FirstOrDefault(criteria);
            }
            return(result);
        }
        public WootModel GetByName(string name)
        {
            var result = new WootModel();

            using (var context = new CrowdNetDBContext())
            {
                result = context.wootModels.LastOrDefault(x => x.Name == name);
            }
            return(result);
        }