public ActionResult ProjectDetails(string ProjectList) { ViewBag.Message = "Project Details"; DataObjects.Project project = new BusinessEntity.Project().LoadProject(Int32.Parse(ProjectList)); ViewBag.SelectedProject = project; return View(); }
public static List<Models.ProjectIDModel> GetAllProjectIDs() { BusinessEntity.Project project = new BusinessEntity.Project(); List<DataObjects.Project> projectList = project.GetAllProjects(); List<Models.ProjectIDModel> prjIDModelList = new List<Models.ProjectIDModel>(); for (int i = 0; i < projectList.Count; i++) { Models.ProjectIDModel prjIDMod = new Models.ProjectIDModel(projectList[i].ProjectID, projectList[i].Name); prjIDModelList.Add(prjIDMod); } return prjIDModelList; }