public async Task <IEnumerable <Announcement> > GetAllAsync(int residentialId) { var entities = await _announcementRepository .AsNoTracking().Include(x => x.Creator) .Where(x => x.ResidentialId == residentialId) .OrderByDescending(x => x.CreationDate).ToListAsync(); return(_mapper.Map <IEnumerable <Announcement> >(entities)); }