Exemplo n.º 1
0
        private List <string[]> _deleteMessage(string key)
        {
            var  errors = new List <string[]>();
            Guid guid;

            if (Guid.TryParse(key, out guid))
            {
                try {
                    ConversationService.DeleteMessage(guid);
                } catch (Exception ex) {
                    errors.Add(new[] { "Delete error.", ex.Message.Replace("'", "\\'") });
                }
            }
            else
            {
                errors.Add(new[] { "Guid error.", key });
            }
            return(errors);
        }