示例#1
0
        public bool IsUserExist(string Name)
        {
            var users = _shopRepository.GetAll();

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