public async Task <BasexResponse <ICollection <CommentResponse> > > GetAllAsync(int announcementId) { try { var comments = await _commentDal.FindAllAsync(c => c.AnnouncementId == announcementId); var response = _mapper.Map <ICollection <Comment>, ICollection <CommentResponse> >(comments); return(new BasexResponse <ICollection <CommentResponse> >(response)); } catch (Exception ex) { return(new BasexResponse <ICollection <CommentResponse> >(ex.Message)); } }