This commit is contained in:
2020-05-18 18:20:47 +00:00
parent fe2d550a56
commit e2e6a4697d
2 changed files with 10 additions and 2 deletions

View File

@@ -32,7 +32,9 @@ namespace AyaNova.Biz
internal static async Task<long> ActiveCountAsync()
{
var ct = ServiceProviderProvider.DBContext;
var ret = await ct.User.Where(x => x.Active == true && (x.UserType == UserType.Schedulable || x.UserType == UserType.Subcontractor)).LongCountAsync();
var ret = await ct.User.Where(x => x.Active == true && (
x.UserType == UserType.Schedulable ||
x.UserType == UserType.Subcontractor)).LongCountAsync();
return ret;
}