Exemplo n.º 1
0
        public int GetNotApprovedMessageCount()
        {
            //var message = _context.Message.Where(x => x.IsApproved == false && x.IsDeleted == false).Count();
            var messageNummber = messageRepository.GetAll().Where(x => x.IsApproved == false && x.IsDeleted == false).Count();

            return(messageNummber);
        }
Exemplo n.º 2
0
 public List <News> GetAllNews()
 {
     return(repository.GetAll().ToList());
 }
Exemplo n.º 3
0
 public List <Literature> GetAll()
 {
     return(repository.GetAll().ToList());
 }
Exemplo n.º 4
0
 public List <Comment> GetAllComments()
 {
     return(commentrepository.GetAll().ToList());
 }
Exemplo n.º 5
0
 public List <Documentation> GetAllDocumentation()
 {
     return(documentationrepository.GetAll().ToList());
 }
Exemplo n.º 6
0
 public List <Attachment> getAllFiles()
 {
     return(attachrepository.GetAll().ToList());
 }
Exemplo n.º 7
0
 public List <About> GetAllText()
 {
     return(aboutrepository.GetAll().ToList());
 }
Exemplo n.º 8
0
 public List <Meetings> GetMeetings()
 {
     return(meetingsrepository.GetAll().ToList());
 }
Exemplo n.º 9
0
        public int GetNotApproved()
        {
            var nummber = repository.GetAll().Where(x => x.IsApproved == false && x.IsDeleted == false).Count();

            return(nummber);
        }