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); }
public List <News> GetAllNews() { return(repository.GetAll().ToList()); }
public List <Literature> GetAll() { return(repository.GetAll().ToList()); }
public List <Comment> GetAllComments() { return(commentrepository.GetAll().ToList()); }
public List <Documentation> GetAllDocumentation() { return(documentationrepository.GetAll().ToList()); }
public List <Attachment> getAllFiles() { return(attachrepository.GetAll().ToList()); }
public List <About> GetAllText() { return(aboutrepository.GetAll().ToList()); }
public List <Meetings> GetMeetings() { return(meetingsrepository.GetAll().ToList()); }
public int GetNotApproved() { var nummber = repository.GetAll().Where(x => x.IsApproved == false && x.IsDeleted == false).Count(); return(nummber); }