//Update public void Update(QuestionsBTO existingQuestions) { UnitOfWork unitOfWork = new UnitOfWork(context); unitOfWork.QuestionsRepo.Update(existingQuestions.QuestionsBTOToQuestions()); unitOfWork.Save(); }
//Create public QuestionsBTO Create(QuestionsBTO bto) { UnitOfWork unitOfWork = new UnitOfWork(context); var response = unitOfWork.QuestionsRepo.Create(bto.QuestionsBTOToQuestions()); unitOfWork.Save(); return(response.QuestionsToQuestionsBTO()); }