public ActionResult DeleteMessage(int messageId, int groupId) { var action = new DeleteMessage(_db, groupId, Requester(), messageId); action.Execute(); return(RedirectToAction("Messages", new { id = groupId })); }
/// <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(); }