/// <summary> /// 更新类别启用状态 /// </summary> /// <param name="guid">纪录标识</param> /// <param name="state">状态</param> /// <returns></returns> public string UpdDetailstate(string guid, string state) { bool result = new DetailSvc().UpdDetailstate(guid, state); string msg = string.Empty; if (result) { msg = General.Resource.Common.Success; } else { msg = General.Resource.Common.Failed; } return(string.Format("{{\"Result\":{0},\"Msg\":\"{1}\"}}" , result.ToString().ToLower(), msg)); }
/// <summary> /// 新增类别 /// </summary> /// <returns></returns> public string UpdDetail(string guid, string name) { T_DetailedCategories detail = new T_DetailedCategories(); detail.GUID = guid; detail.Name = name; detail.State = "启用"; bool result = new DetailSvc().UpdDetail(detail); string msg = string.Empty; if (result) { msg = General.Resource.Common.Success; } else { msg = General.Resource.Common.Failed; } return(string.Format("{{\"Result\":{0},\"Msg\":\"{1}\"}}" , result.ToString().ToLower(), msg)); }