Пример #1
0
        public ActionResult ExamGridViewPartialDelete(System.Int32 ExamID)
        {
            if (ExamID >= 0)
            {
                try
                {
                    BusinessLogicLayer.Components.PPM.ExamLogic logic = new BusinessLogicLayer.Components.PPM.ExamLogic();
                    if (!logic.HasDependencies(ExamID))
                    {
                        BusinessLogicLayer.Entity.PPM.Exam type = new BusinessLogicLayer.Entity.PPM.Exam(ExamID);
                        type.Delete();
                    }
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            var model = new BusinessLogicLayer.Components.PPM.ExamLogic().GetAllView();

            return(PartialView("_ExamGridViewPartial", model));
        }