public static string ActiveUnicastCount(int userId, string taskType)
{
using (var uow = new DAL.UnitOfWork())
{
return BLL.User.IsAdmin(userId)
? uow.ActiveImagingTaskRepository.Count(t => t.Type == taskType)
: uow.ActiveImagingTaskRepository.Count(t => t.Type == taskType && t.UserId == userId);
}
}