forked from MDCPS/DamageAssessment_Backend
Copy from old Repository
This commit is contained in:
@ -0,0 +1,18 @@
|
||||
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>();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user