This commit is contained in:
@@ -339,11 +339,20 @@ namespace AyaNova.Biz
|
||||
return ct.Locale.Any(e => e.Id == id);
|
||||
}
|
||||
|
||||
|
||||
public static bool LocaleExistsStatic(long id, AyContext ct)
|
||||
{
|
||||
return ct.Locale.Any(e => e.Id == id);
|
||||
}
|
||||
|
||||
|
||||
public static long EnsuredLocaleIdStatic(long id, AyContext ct)
|
||||
{
|
||||
if (!ct.Locale.Any(e => e.Id == id))
|
||||
return ServerBootConfig.AYANOVA_DEFAULT_LANGUAGE_ID;
|
||||
return id;
|
||||
}
|
||||
|
||||
public bool LocaleItemExists(long id)
|
||||
{
|
||||
return ct.LocaleItem.Any(e => e.Id == id);
|
||||
|
||||
Reference in New Issue
Block a user