public JsonResult DeleteDataMenu(int paramId)
        {
            string latestCode = MenuDataAccess.DeleteMenu(paramId);

            if (latestCode != "")
            {
                return(Json(new { success = true, latestCode, message = MenuDataAccess.Message }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(new { success = false, message = MenuDataAccess.Message }, JsonRequestBehavior.AllowGet));
            }
        }
Exemple #2
0
 public int DeleteMenu(int id)
 {
     return(mda.DeleteMenu(id));
 }