BExIS.Web.Shell.Areas.BAM.Controllers.PartyController.View C# (CSharp) Method

View() public method

public View ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult
        public ActionResult View(int id)
        {
            ViewBag.Title = PresentationModel.GetViewTitleForTenant("View Party", this.Session.GetTenant());

            PartyManager partyManager = new PartyManager();
            PartyTypeManager partyTypeManager = new PartyTypeManager();
            var model = new PartyModel();
            model.PartyTypeList = partyTypeManager.Repo.Get().ToList();
            model.Party = partyManager.Repo.Get(id);

            return View(model);
        }