Beispiel #1
0
    public static void DeleteQuestion( string OrderNo,string SectionID)
    {
        Question qu=new Question ();
           QuestionResponse qr = new QuestionResponse();
        int OrderNumber = Convert.ToInt32(OrderNo);
        int secID = Convert.ToInt32(SectionID);
        int QuestionOID = qu.GetQuestionOIDBySectionIDAndOrderNo(OrderNumber, secID);
        qr.DeleteQuestionBySectionOID(QuestionOID);
        if (qu.DeleteQuestionByQuestionOID(QuestionOID))
        {
            qr.UpdateQuestionResponseTotalQuestion(secID);
            Alert.Show("Successfully Deleted this question..");
            return;
        }
        else
        {

            Alert.Show("Not Deleted .try again..");
            return;
        }
    }