public ActionResult QuestionInsert(QuestionModelClass modelClass)
        {
            string url        = "api/QuestionnaireManagement/Questionnaire/QuestionInsert";
            var    AllSection = CallAPI.InsertUpdateEntity <QuestionModelClass>(url, modelClass);

            return(Json(new { data = AllSection }, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
 public void OptionDelete(QuestionModelClass modelClass)
 {
     db.Entry(modelClass).State = System.Data.Entity.EntityState.Deleted;
     db.SaveChanges();
 }
Exemplo n.º 3
0
 public void QuestionUpdate(QuestionModelClass modelClass)
 {
     db.Entry(modelClass).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
 }