using System;
using System.Collections.Generic;
using System.Web;
/// <summary>
///Books 的摘要说明
/// </summary>
public class Books
{
public int Id { get; set; }
public String Author { get; set; }
public String Title { get; set; }
public DateTime PunDate { get; set; }
public Books() { }
public List<Books> GetBooks
{
get
{
return this.GetInternalBooks();
}
}
internal List<Books> GetInternalBooks()
{
List<Books> bs = new List<Books>();
bs.Add(new Books { Id = 1, Author = "孟宪会", Title = "《ASP.NET 2.0 应用开发技术》", PunDate = System.DateTime.Now.AddMonths(-10) });
bs.Add(new Books { Id = 2, Author = "孟宪会", Title = "《Eric Meyer谈CSS(卷2)》", PunDate = System.DateTime.Now });
bs.Add(new Books { Id = 3, Author = "孟宪会", Title = "《Eric Meyer谈CSS(卷1)》", PunDate = System.DateTime.Now.AddMonths(+10) });
return bs;
}
}