コード例 #1
0
 public string CreateCkeckTypes(string name, string subs)
 {
     try
     {
         CheckType type = new CheckType();
         type.Id          = Guid.NewGuid();
         type.Name        = name;
         type.TypeItems   = subs;
         _response.Stutas = _checkManager.AddCheckType(type);
     }
     catch (Exception ex)
     {
         Common.LogsHelper.WriteErrorLog(ex, "添加检查类型");
         _response.Msg = ex.Message;
     }
     return(Common.Utils.SerializeObject(_response));
 }