コード例 #1
0
        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));
        }
コード例 #2
0
        // Add Full Manager Name
        public ActionResult CreateManager(int id)
        {
            proj_mgr model = proj_mgrInfo.GetProj_Mgr();

            return(PartialView("_CreateManager", model));
        }