public ActionResult Create([Bind(Include = "Title, ComponentId, ModuleId, FeatureId, Description")] AD_Help post) { if (ModelState.IsValid) { AD_HelpBL help = new AD_HelpBL(); help.Create("Create_Help", post.ComponentId, post.ModuleId, post.FeatureId, post.Title, post.Description, false); return(RedirectToAction("all")); } return(View(post)); }
public ActionResult Edit([Bind(Include = "HelpId, Title, Description")] AD_Help post) { if (ModelState.IsValid) { AD_HelpBL help = new AD_HelpBL(); help.EditPost("Edit_Help", post.HelpId, post.Title, post.Description); return(RedirectToAction("all")); } return(View(post)); }
public List <AD_Help> List(string filter, bool listFilter) { try { DataTable dt = help.Read(filter, listFilter); AD_Help helpFile = new AD_Help(); List <AD_Help> jkj = dt.ToList <AD_Help>(); return(jkj); } catch (Exception) { return(null); } }
public List <AD_Help> Read(string filter, int CID, int MID) { try { DataTable dt = help.Read(filter, CID, MID); AD_Help helpFile = new AD_Help(); List <AD_Help> model = dt.ToList <AD_Help>(); return(model); } catch (Exception) { return(null); } }
public List <AD_Help> ReadPost(string filter, int id) { try { DataTable dt = help.ReadPost(filter, id); AD_Help helpFile = new AD_Help(); List <AD_Help> model = dt.ToList <AD_Help>(); if (dt != null && dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { model[i].ModuleId = int.Parse(dt.Rows[i]["ModuleId"].ToString()); } return(model); } return(null); } catch (Exception) { return(null); } }