Beispiel #1
0
        public ActionResult CreateSponsor(int id, proj_sponsor sponsor)
        {
            string projDesc = projectInfo.returnProjectDescription(id);

            if (TryUpdateModel(sponsor))
            {
                _ctx.proj_sponsor.Add(sponsor);
                _ctx.SaveChanges();
                return(RedirectToAction("Index", new { searchTerm = projDesc }));
            }
            return(View(sponsor));
        }
Beispiel #2
0
        //          Add Full Sponsor Name Record                        //
        public ActionResult CreateSponsor(int id)
        {
            proj_sponsor model = proj_sponsorInfo.GetProj_Sponsor();

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