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