public long Count_soal_To_User(long Iduser)
        {
            var user  = _Userrepository.GetById(Iduser);
            var soals = _soalRepository.Get(
                x => !x.IsDeleted &&
                x.Regdat > user.visitedDate
                )
                        .LongCount();

            return(soals);
        }
        public long Count_soal_To_User(long Iduser)
        {
            var user  = _Userrepository.GetById(Iduser);
            var soals = _soalRepository.Get(
                x => !x.IsDeleted &&
                x.Regdat > user.visitedDate &&
                user.ReshtehUser
                .Select(c => c.ZirReshtehId)
                .Contains(x.TagSoal.FirstOrDefault().Tag.ZirReshtehId))
                        .LongCount();

            return(soals);
        }
 public IList <Soal> List_Deleted_Soals_Of_user(long IdUser)
 {
     try
     {
         var q = _soalRepository.Get(x => x.ApplicationUserId == IdUser && x.IsDeleted).ToList();
         return(q);
     }
     catch { throw new NotImplementedException(); }
 }