public static void SaveExamQuestion(BankStoryExam_Question Question)
        {
            using (var ctx = new BMIKidsEntities(ConnectionString))
            {
                try
                {
                    ctx.BankStoryExam_Question.ApplyChanges(Question);
                    ctx.SaveChanges();

                }
                catch (Exception ex)
                {
                    LogUtility.WriteEntryEventLog("BankStory_DataProvider_SaveExamQuestion", ex, EventLogEntryType.Information);
                    if (ex.InnerException != null)
                        throw ex.InnerException;
                    throw;
                }
            }
        }
 private BankStoryExam_Question GetItemInfoFromSkin()
 {
     BankStoryExam_Question item = new BankStoryExam_Question
         {
             QuestionBody = txtQuestionBody.Text,
             AnswerA = txtQuestionAnswerA.Text,
             AnswerB = txtQuestionAnswerA.Text,
             AnswerC = txtQuestionAnswerA.Text,
             AnswerD = txtQuestionAnswerA.Text,
             Answer = drpCorrectAnswer.SelectedValue.ToInt32()
         };
     return item;
 }