public static void Report(string message) { var rep = new model.Report(); rep.CID = "Undefined"; rep.Id = 1; rep.Message = message; rep.Details = null; core.ReportSystem.Save(rep); core.ReportSystem.Send(rep); }
public static void Report(Implement.InternalException lex) { var rep = new model.Report(); rep.CID = "Undefined"; rep.Id = lex.Code; rep.Message = lex.Message; rep.Details = ValuesEx.To(lex).ToJson(); core.ReportSystem.Save(rep); core.ReportSystem.Send(rep); }