public string ActiveCount(int userId)
 {
     return(_userServices.IsAdmin(userId)
         ? _uow.ActiveMulticastSessionRepository.Count()
         : _uow.ActiveMulticastSessionRepository.Count(x => x.UserId == userId && x.UploadTaskId == null));
 }
Esempio n. 2
0
 public string ActiveCountNotOwnedByuser(int userId)
 {
     return(_userServices.IsAdmin(userId)
         ? "0"
         : _uow.ActiveImagingTaskRepository.Count(x => x.UserId != userId));
 }