19 lines
707 B
C#
19 lines
707 B
C#
using AutoMapper;
|
|
|
|
namespace DamageAssesment.Api.Questions.Profiles
|
|
{
|
|
public class QuestionProfile : AutoMapper.Profile
|
|
{
|
|
public QuestionProfile()
|
|
{
|
|
CreateMap<Db.Question, Models.Question>().ForMember(dest => dest.TypeText,
|
|
opt => opt.MapFrom(src => src.QuestionType.TypeText));
|
|
CreateMap<Models.QuestionCategory, Db.QuestionCategory>();
|
|
CreateMap<Db.QuestionCategory, Models.QuestionCategory>();
|
|
CreateMap<Models.Question, Db.Question>();
|
|
CreateMap<Db.QuestionsTranslation, Models.QuestionsTranslation>();
|
|
CreateMap<Models.QuestionsTranslation, Db.QuestionsTranslation>();
|
|
}
|
|
}
|
|
}
|