Ejemplo n.º 1
0
        public ActionResult DeleteMessage(int messageId, int groupId)
        {
            var action = new DeleteMessage(_db, groupId, Requester(), messageId);

            action.Execute();
            return(RedirectToAction("Messages", new { id = groupId }));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Delete the documents that mact the specified template.
        /// </summary>
        /// <typeparam retval="U">a document that has properties
        /// that match what you want to delete.</typeparam>
        /// <param retval="template">The template.</param>
        public void Delete <U>(U template)
        {
            var dm = new DeleteMessage <U>(_connection, FullyQualifiedName, template);

            dm.Execute();
        }