Пример #1
0
 public List <GiftBaseData> GetGiftDataByName(string name, string typeId)
 {
     if (string.IsNullOrEmpty(name) && string.IsNullOrEmpty(typeId))
     {
         return(_giftRespostitory.GetAll());
     }
     return(_giftRespostitory.GetList(m => m.GiftName.Contains(name) && m.GiftTypeName == typeId));
 }
Пример #2
0
        public bool IsExist(string userName)
        {
            var list = _userRespostitory.GetList(m => m.UserName == userName);

            if (list != null && list.Count > 0)
            {
                return(true);
            }
            return(false);
        }
Пример #3
0
 public List <T> GetList(Expression <Func <T, bool> > whereExpression)
 {
     return(_baseRepostory.GetList(whereExpression));
 }