Ejemplo n.º 1
0
        public Question UpdateQuestion(Question question, QuestionEdit questionCreate)
        {
            question.QuestionName     = questionCreate.Question;
            question.Description      = questionCreate.Description;
            question.QuestionDateTime = questionCreate.Date;
            question.IsActive         = questionCreate.IsActive;

            return(question);
        }
Ejemplo n.º 2
0
 public static Question CreateFromQuestionCreate(QuestionEdit questionCreate)
 {
     return(new Question()
     {
         QuestionName = questionCreate.Question,
         Description = questionCreate.Description,
         QuestionDateTime = questionCreate.Date,
         IsActive = questionCreate.IsActive
     });
 }