public BLLResult Update(Guid id, string Text, string AlertTime)
        {
            TbAlerts alert = Find(id);

            alert.AlertTime = AlertTime.ToTime();
            alert.AlertText = Text;
            alert.AlertHTML = Text.Replace("\r\n", "<br />").Replace("\r", "<br />").Replace("\n", "<br />");

            BLLResult res = new BLLResult();

            res.IsSuccess    = (Api.Save() > 0);
            res.ErrorMessage = Api.SaveError;

            return(res);
        }
        public BLLResult Insert(string Text, string AlertTime)
        {
            TbAlerts alert = new TbAlerts();

            alert.AlertTime = AlertTime.ToTime();
            alert.AlertText = Text;
            alert.AlertHTML = Text.Replace("\r\n", "<br />").Replace("\r", "<br />").Replace("\n", "<br />");
            alert.AlertId   = NetTalk.GuidTools.Create();

            Api.Insert(alert);

            BLLResult res = new BLLResult();

            res.IsSuccess    = (Api.Save() > 0);
            res.ErrorMessage = Api.SaveError;

            return(res);
        }