public ActionResult Create(QuestionClassify m)
        {
            if (ModelState.IsValid)
            {

                if (um.Create(m))
                {
                    return Redirect("/Contents/html/parent_reload.htm");
                }
            }

            return View(m);
        }
        public Boolean Edit(QuestionClassify model)
        {
            try
            {
                olsEni.Entry(model).State = EntityState.Modified;
                olsEni.SaveChanges();

                return true;
            }
            catch (Exception ex)
            {
                StaticHelper.RecordSystemLog(ex);
                return false;
            }
        }
        public Boolean Create(QuestionClassify model)
        {
            try
            {

                Int32 id;

                id = GetQCId();

                model.QC_Id = id;
                model.QC_Level = String.Format("{0:D4}", id);
                olsEni.QuestionClassifies.Add(model);
                olsEni.SaveChanges();

                return true;
            }
            catch (Exception ex)
            {
                StaticHelper.RecordSystemLog(ex);
                return false;
            }
        }
        public QuestionClassify GetNew()
        {
            QuestionClassify model;

            model = new QuestionClassify()
            {
                QC_Id = 0,
                QC_Name = "",
                QC_Level = "",
                QC_Remark = "",
                QC_AddTime = DateTime.Now,
                QC_Status = (Byte)Status.Available
            };

            return model;
        }