コード例 #1
0
        public async Task <List <Announcement> > Details(string id)
        {
            var kategori = _announcementDal.GetAllString(id);

            Announcement announcement = new Announcement();



            foreach (var item in kategori)
            {
                announcement.CategoryId = item.CategoryId;
            }

            var duyurukategorisi = await _genericDalCategory.GetByIdAsync(announcement.CategoryId);

            var onerilenduyurular = _announcementDal.GetAllStringDetail(duyurukategorisi.Id, id);

            return(onerilenduyurular);
        }