コード例 #1
0
        public ActionResult AddDwPage(structure _addObj)
        {
            var addDwPage = _repository.Add(_addObj);

            string msg = "#Page Successfully Added!";

            return Redirect("/Dw/Admin" + msg);
        }
コード例 #2
0
        public ActionResult UpdateDw(structure _dwItems)
        {
            var updateDw = _repository.Edit(_dwItems);

            string msg = "#Page Successfully Updated!";

            return Redirect("/Dw/Admin" + msg);
        }
コード例 #3
0
        public ActionResult DeleteDw(structure _objId)
        {
            var deleteDw = _repository.Delete(_objId);

            string msg = "#Page Successfully Deleted";

            return Redirect("/Dw/Admin" + msg);

        }
コード例 #4
0
        public ActionResult AddLibPage(structure _objItems)
        {
            var addLibPage = _structureRepository.AddLibPage(_objItems);

            return Redirect("/structure/index");
        }
コード例 #5
0
        public JsonResult UpdateLibraryAdmin(structure model)
        {
            var updateLibPage = _structureRepository.UpdateLibPage(model);

            if ((bool)updateLibPage == true)
            {
                string message = "Page Updated!";
                return Json(message, JsonRequestBehavior.AllowGet);
            }
            else
            {
                string message = "Failure!";
                return Json(message, JsonRequestBehavior.AllowGet);
            }
        }
コード例 #6
0
        public ActionResult PostEditAlert(structure _editAlertObjs)
        {
            var postEditAlert = _structureRepository.EditPostAlert(_editAlertObjs);

            if((bool)postEditAlert == true)
            {
                string msg = "Alert Edited";
                return Redirect("/structure/GetAlerts/" + msg);
            }

            return Redirect("/structure/GetAlerts/" + "Error");
        }
コード例 #7
0
        public ActionResult PostAlert(structure _addAlertObjs)
        {
            var addAlert = _structureRepository.AddAlert(_addAlertObjs);

            if ((bool)addAlert == true)
            {
                string msg = "Alert Added";

                return Redirect("/structure/GetAlerts/" + msg);
            }

            return Redirect("/structure/GetAlerts/" + "Error");
        }
コード例 #8
0
        public JsonResult DeleteLibPage(structure model)
        {
            int id = model.HighId;

            var deleteLibPage = _structureRepository.DeleteLibPage(id);

            if ((bool)deleteLibPage == true)
            {
                string message = "Page Deleted!";
                return Json(message, JsonRequestBehavior.AllowGet);
            }
            else
            {
                string message = "Failure!";
                return Json(message, JsonRequestBehavior.AllowGet);
            }
        }