예제 #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 });
 }