public ActionResult Details(int id) { ProjectLab.Areas.Admin.Models.Milestones.Milestones data = new ProjectLab.Areas.Admin.Models.Milestones.Milestones(); var detailList = new List <Admin.Models.Milestones.Milestones>(); // var proj = new Admin.Models.Project.Project(); // pList = Projectmodel.GetOnlyProjectTitle(id); detailList = model.GetOnlyMilestones(id); var proj = Projectmodel.GetProjectByMilestonesID(id); ViewData["ProjectID"] = proj.ProjectID; ViewData["MilestonesID"] = id; return(View("Details")); }
public ActionResult Details(int id) { ProjectLab.Areas.Admin.Models.Milestones.Milestones data = new ProjectLab.Areas.Admin.Models.Milestones.Milestones(); var detailList = new List<Admin.Models.Milestones.Milestones>(); // var proj = new Admin.Models.Project.Project(); // pList = Projectmodel.GetOnlyProjectTitle(id); detailList = model.GetOnlyMilestones(id); var proj = Projectmodel.GetProjectByMilestonesID(id); ViewData["ProjectID"] = proj.ProjectID; ViewData["MilestonesID"] = id; return View("Details"); }
// // GET: /Admin/Milestones/Edit/5 public ActionResult Edit(int id) { ProjectLab.Areas.Admin.Models.Milestones.Milestones proj = new ProjectLab.Areas.Admin.Models.Milestones.Milestones(); proj = model.GetData(id); return(View("Edit", proj)); }
// // GET: /Admin/Milestones/Edit/5 public ActionResult Edit(int id) { ProjectLab.Areas.Admin.Models.Milestones.Milestones proj = new ProjectLab.Areas.Admin.Models.Milestones.Milestones(); proj = model.GetData(id); return View("Edit", proj); }