public ActionResult AddDwPage(structure _addObj) { var addDwPage = _repository.Add(_addObj); string msg = "#Page Successfully Added!"; return Redirect("/Dw/Admin" + msg); }
public ActionResult UpdateDw(structure _dwItems) { var updateDw = _repository.Edit(_dwItems); string msg = "#Page Successfully Updated!"; return Redirect("/Dw/Admin" + msg); }
public ActionResult DeleteDw(structure _objId) { var deleteDw = _repository.Delete(_objId); string msg = "#Page Successfully Deleted"; return Redirect("/Dw/Admin" + msg); }
public ActionResult AddLibPage(structure _objItems) { var addLibPage = _structureRepository.AddLibPage(_objItems); return Redirect("/structure/index"); }
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); } }
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"); }
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"); }
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); } }