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)); }
public bool IsExist(string userName) { var list = _userRespostitory.GetList(m => m.UserName == userName); if (list != null && list.Count > 0) { return(true); } return(false); }
public List <T> GetList(Expression <Func <T, bool> > whereExpression) { return(_baseRepostory.GetList(whereExpression)); }