/// <summary> /// delete the category /// </summary> /// <param name="id">the identity of the category</param> /// <returns></returns> private dynamic DeleteCategory(string id) { ResponseModel json = _cateLogic.DeleteCategory(id); return(Response.AsText(JsonConvert.SerializeObject(json), "application/json; charset =UTF-8")); }
//Delete in CRUD public ActionResult Delete(int ID) { _categoryLogic.DeleteCategory(ID); return(RedirectToAction("Index")); }