public async Task <DTO.NotificationAnswer> findbyNotificationId(Guid id) { var notAnswer = await RepoDbSet.AsQueryable() .Where(na => na.NotificationId == id).FirstOrDefaultAsync(); return(NotificationAnswerMapper.Map(notAnswer)); }
public async Task <DTO.NotificationAnswer> AddNewAnswer(DTO.NotificationAnswer answer) { var domain = NotificationAnswerMapper.MapToDomain(answer); return(NotificationAnswerMapper.Map((await RepoDbSet.AddAsync(domain)).Entity)); }