public static Models.QuestionModel MapObject(this Question q) { if (q == null) { return(null); } Models.QuestionModel res = new Models.QuestionModel(); res.Id = q.Id; res.QId = q.QId; res.QDesc = q.QDesc; return(res); }
public static Question MapObject(this Models.QuestionModel model) { if (model == null) { return(null); } Question res = new Question(); res.Id = model.Id; res.QId = model.QId; res.QDesc = model.QDesc; return(res); }