public PackageInfo(Package package) { _package = package; Title = package.Title; Description = package.Description; HomePage = new Uri("/package/" + package.ID, UriKind.Relative); ID = package.ID; }
public PackageInfo(Package package) { ID = package.ID; Title = package.Title; }
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 }); }