Esempio n. 1
0
        public bool IsUserExist(string Name)
        {
            var users = _shopRepository.GetAll();

            if (users.Find(x => x.UserName == Name) != null)
            {
                return(true);
            }
            return(false);
        }
Esempio n. 2
0
 public List <string> GetAllCategories()
 {
     return(_shopRepository.GetAll().Select(x => x.ProductCategory).Distinct().ToList());
 }