/// <summary> /// چک کردن اینکه برای این شخص قبلا آدرسی ذخیره شده یا خیر /// </summary> /// <param name="userId"></param> /// <returns></returns> public bool Check(int userId) => TableNoTracking.Any(a => a.UserId == userId);
public bool IsExist(string tokenKey) { return(TableNoTracking.Any(t => string.Equals(t.TokenKey, tokenKey))); }
/// <summary> /// Check isExist by name /// </summary> /// <param name="name"></param> /// <returns></returns> public bool IsExist(string name) { return(TableNoTracking.Any(s => s.Name.Equals(name))); }
public bool IsExist(string nameId) { return(TableNoTracking.Any(u => string.Equals(u.NameId, nameId))); }
/// <summary> /// Is exist check by name /// </summary> /// <param name="appName"></param> /// <returns></returns> public bool IsExistByName(string appName) { return(TableNoTracking.Any(a => a.Name.Equals(appName))); }