BLL.ActiveImagingTask.ActiveUnicastCount C# (CSharp) Method

ActiveUnicastCount() public static method

public static ActiveUnicastCount ( int userId, string taskType ) : string
userId int
taskType string
return string
        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);
            }
        }