Exemplo n.º 1
0
        /// <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"));
        }
Exemplo n.º 2
0
 //Delete in CRUD
 public ActionResult Delete(int ID)
 {
     _categoryLogic.DeleteCategory(ID);
     return(RedirectToAction("Index"));
 }