Esempio n. 1
0
        public ActionResult PatientFeedback()
        {
            BL_PatientFeedback patientfeedback1 = new BL_PatientFeedback();
            PatientFeedback    AddServiceMod    = new PatientFeedback();

            AddServiceMod.dsgrid = patientfeedback1.GetAllFeedbackForm();
            return(View(AddServiceMod));
        }
Esempio n. 2
0
        public JsonResult GetAllFeedbackForm()
        {
            BL_PatientFeedback patientfeedback1 = new BL_PatientFeedback();
            PatientFeedback    AddServiceMod    = new PatientFeedback();

            AddServiceMod.dsgrid = patientfeedback1.GetAllFeedbackForm();


            List <PatientFeedback> search = new List <PatientFeedback>();

            foreach (DataRow dr in AddServiceMod.dsgrid.Tables[0].Rows)
            {
                search.Add(new PatientFeedback
                {
                    QuestionHeadID   = dr["QuestionHeadID"].ToString(),
                    QuestionHeadName = dr["QuestionHeadName"].ToString(),
                    QuestionName     = dr["QuestionName"].ToString(),
                });
            }
            return(new JsonResult {
                Data = search, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }