/// <summary> /// Create a new blog entry /// </summary> public static BlogEntry CreateBlogEntry(ControllerFactory controllerFactory) { var blogController = controllerFactory.GetBlogController(); var blogEntryToCreate = BlogEntryFactory.Get(); blogController.Create(blogEntryToCreate); return blogEntryToCreate; }
public void Initialize() { _controllerFactory = new ControllerFactory(); _commentController = _controllerFactory.GetCommentController(); }
public void Initialize() { _controllerFactory = new ControllerFactory(); _archiveController = _controllerFactory.GetArchiveController(); }
public void Initialize() { _controllerFactory = new ControllerFactory(); _applicationController = _controllerFactory.GetApplicationController(); }
public void Initialize() { _controllerFactory = new ControllerFactory(); _blogController = _controllerFactory.GetBlogController(); }