BLL.ActiveImagingTask.AllActiveCount C# (CSharp) Method

AllActiveCount() public static method

public static AllActiveCount ( int userId ) : string
userId int
return string
        public static string AllActiveCount(int userId)
        {
            using (var uow = new DAL.UnitOfWork())
            {
                return BLL.User.IsAdmin(userId)
                    ? uow.ActiveImagingTaskRepository.Count()
                    : uow.ActiveImagingTaskRepository.Count(x => x.UserId == userId);
            }
        }