示例#1
0
文件: PackageInfo.cs 项目: NoCat/mp
 public PackageInfo(Package package)
 {
     _package = package;
     Title = package.Title;
     Description = package.Description;
     HomePage = new Uri("/package/" + package.ID, UriKind.Relative);
     ID = package.ID;
 }
示例#2
0
文件: PackageInfo.cs 项目: NoCat/mp
 public PackageInfo(Package package)
 {
     ID = package.ID;
     Title = package.Title;
 }
示例#3
0
 public ActionResult PackageCreate(int id, string title, string description)
 {
     var package = new Package { UserID = id, Title = title, Description = description,LastModify=new DateTime(1990,1,1) };
     Manager.Packages.Add(package);
     return RedirectToAction("index", new { id = id });
 }