public static bool Add(Model.ReactorModel reactor) { try { if (reactor is null || Database.Reactors.ContainsKey(reactor.Id)) { return(false); } Database.Reactors.Add(reactor.Id, reactor); Database.ReactorIds.Add(reactor.Id); return(true); } catch { return(false); } }
public static string ConvertToLogFormat(Model.ReactorModel reactor) { return(ConvertToLogFormat(reactor.Id, reactor.Temperature)); }