public TypeOfQuestion Create(TypeOfQuestion typeofquestion) { ETypeOfQuestion eTypeOfQuestion = ETypeOfQuestion(typeofquestion); eTypeOfQuestion = _iDTypeOfQuestion.Create(eTypeOfQuestion); return(TypeOfQuestion(eTypeOfQuestion)); }
private TypeOfQuestion TypeOfQuestion(ETypeOfQuestion eTypeOfQuestion) { TypeOfQuestion returnTypeOfQuestion = new TypeOfQuestion { TypeOfQuestionId = eTypeOfQuestion.TypeOfQuestionId, TypeOfQuestionName = eTypeOfQuestion.TypeOfQuestionName }; return(returnTypeOfQuestion); }
private ETypeOfQuestion ETypeOfQuestion(TypeOfQuestion typeofquestion) { ETypeOfQuestion returnETypeOfQuestion = new ETypeOfQuestion { TypeOfQuestionId = typeofquestion.TypeOfQuestionId, TypeOfQuestionName = typeofquestion.TypeOfQuestionName }; return(returnETypeOfQuestion); }
public TypeOfQuestion Read(int typeofquestionId) { ETypeOfQuestion eTypeOfQuestion = _iDTypeOfQuestion.Read <ETypeOfQuestion>(a => a.TypeOfQuestionId == typeofquestionId); return(TypeOfQuestion(eTypeOfQuestion)); }