Created
September 17, 2014 03:58
-
-
Save rofr/90a1f6c2beab7fbc87da to your computer and use it in GitHub Desktop.
Building a CMS with OrigoDB - snippet 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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