Ejemplo n.º 1
0
        public ActionResult FlowCatalogDelete(int id)
        {
            Flow flow = new Flow();

            if (ModelState.IsValid)
            {
                bool delete;
                try
                {
                    delete = flow.DeleteCatalog(id);
                }
                catch (Exception)
                {
                    delete = false;
                }

                if (delete)
                {
                    return(Json(new { IsSuccess = true, Message = "删除成功" }));
                }
                else
                {
                    return(Json(new { IsSuccess = false, Message = "删除失败" }));
                }
            }
            return(View());
        }