public ActionResult EditCategory(int id, string name) { if (id > 0 && name != null) { int result = categoryBLL.EditCategory(id, name); if (result == 1) { return(Json(new { success = true, responseText = "" }, JsonRequestBehavior.AllowGet)); } } return(Json(new { success = false, responseText = "Error in Editing Category !" }, JsonRequestBehavior.AllowGet)); }
public static void EditingCategory(int id, string description) { try { var categoryBLL = new CategoryBLL(); categoryBLL.EditCategory(id, description); } catch (Exception ex) { throw ex; } }
public JsonResult EditCategory(Category category) { bll.EditCategory(category); return(Json(category, JsonRequestBehavior.AllowGet)); }