Skip to content

Instantly share code, notes, and snippets.

@rofr
Created September 17, 2014 03:58
Show Gist options
  • Save rofr/90a1f6c2beab7fbc87da to your computer and use it in GitHub Desktop.
Save rofr/90a1f6c2beab7fbc87da to your computer and use it in GitHub Desktop.
Building a CMS with OrigoDB - snippet 3
[Serializable]
public class PutPageCommand : Command<CmsModel>
{
public readonly Page Page;
public PutPageCommand(Page page)
{
if (page == null) throw new ArgumentNullException("page");
Page = page;
}
protected override void Execute(CmsModel model)
{
model.PutPage(Page);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment