public ActionResult CreateManager(int id, proj_mgr projmgr) { string projDesc = projectInfo.returnProjectDescription(id); if (TryUpdateModel(projmgr)) { _ctx.proj_mgr.Add(projmgr); _ctx.SaveChanges(); return(RedirectToAction("Index", new { searchTerm = projDesc })); } return(View(projmgr)); }
// Add Full Manager Name public ActionResult CreateManager(int id) { proj_mgr model = proj_mgrInfo.GetProj_Mgr(); return(PartialView("_CreateManager", model)); }