Added RedirectUsingNamedRoute
[castle.git] / Samples / MindDump / Castle.Applications.MindDump / Model / Blog.cs
blob531d181d09627ae6e24e8e3d906798af05ee4eab
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.Applications.MindDump.Model
17 using System;
18 using System.Collections;
20 public class Blog
22 private long _id;
23 private String _name;
24 private String _description;
25 private String _theme;
26 private Author _author;
27 private IList _posts;
29 public Blog()
33 public Blog(long id)
35 _id = id;
38 public Blog(String name, String description, String theme, Author author)
40 _name = name;
41 _description = description;
42 _theme = theme;
43 _author = author;
46 public long Id
48 get { return _id; }
49 set { _id = value; }
52 public string Name
54 get { return _name; }
55 set { _name = value; }
58 public string Description
60 get { return _description; }
61 set { _description = value; }
64 public string Theme
66 get { return _theme; }
67 set { _theme = value; }
70 public Author Author
72 get { return _author; }
73 set { _author = value; }
76 public IList Posts
78 get { return _posts; }
79 set { _posts = value; }