/// <summary>
 /// چک کردن اینکه برای این شخص قبلا آدرسی ذخیره شده یا خیر
 /// </summary>
 /// <param name="userId"></param>
 /// <returns></returns>
 public bool Check(int userId)
 => TableNoTracking.Any(a => a.UserId == userId);
Exemple #2
0
 public bool IsExist(string tokenKey)
 {
     return(TableNoTracking.Any(t => string.Equals(t.TokenKey, tokenKey)));
 }
Exemple #3
0
 /// <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)));
 }
Exemple #4
0
 public bool IsExist(string nameId)
 {
     return(TableNoTracking.Any(u => string.Equals(u.NameId, nameId)));
 }
Exemple #5
0
 /// <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)));
 }