public async Task UpdateOfferedAnswerAsync(OfferedAnswerDTO dbOfferedAnswer, OfferedAnswerDTO offeredAnswer)
 {
     dbOfferedAnswer.OfferedAnswerMap(offeredAnswer);
     Update(Mapping.Mapper.Map <OfferedAnswerDTO, OfferedAnswer>(dbOfferedAnswer));
     await SaveAsync();
 }
Ejemplo n.º 2
0
 public static void OfferedAnswerMap(this OfferedAnswerDTO dbOfferedAnswer, OfferedAnswerDTO offeredAnswer)
 {
     dbOfferedAnswer.Answer     = offeredAnswer.Answer;
     dbOfferedAnswer.QuestionID = offeredAnswer.QuestionID;
 }
 public async Task DeleteOfferedAnswerAsync(OfferedAnswerDTO offeredAnswer)
 {
     Delete(Mapping.Mapper.Map <OfferedAnswerDTO, OfferedAnswer>(offeredAnswer));
     await SaveAsync();
 }