public ActionResult Delete(int id) { AjaxResult result = new AjaxResult(); try { Industry entity = m_FTISService.GetIndustryById(id); entity.Status = "0"; m_FTISService.UpdateIndustry(entity); result.ErrorCode = AjaxResultStatus.Success; result.Message = string.Format("{0}刪除成功", entity.Name); } catch (Exception ex) { result.ErrorCode = AjaxResultStatus.Exception; result.Message = ex.Message; } return(this.Json(result)); }