public void CategoryAdd(string CategoryName, int SectionId) { dbHelper.AddCategory(CategoryName, SectionId); }
public ActionResult CategoryAdd(string CategoryName, int SectionId) { dbHelper.AddCategory(CategoryName, SectionId); return(RedirectToAction("CategoryList", new { Id = SectionId })); }