Ejemplo n.º 1
0
 partial void DeleteMCQuestion(MCQuestion instance);
Ejemplo n.º 2
0
 partial void InsertMCQuestion(MCQuestion instance);
Ejemplo n.º 3
0
 partial void UpdateMCQuestion(MCQuestion instance);
Ejemplo n.º 4
0
        public bool CreateMCQuestion(MCQuestionDAO s)
        {
            MCQuestion mCQuestion = new MCQuestion
            {
                MCQuestion_ID = s.MCQuestionID,
                MCQuestionDescription = s.MCQuestionDescription
            };

            using (AESDatabaseDataContext db = new AESDatabaseDataContext())
            {
                db.MCQuestions.InsertOnSubmit(mCQuestion);

                try
                {
                    db.SubmitChanges();
                }
                catch (Exception e)
                {
                    throw new FaultException<KaskServiceException>(new KaskServiceException(), new FaultReason(e.Message));
                }
            }

            return true;
        }