public HttpResponseMessage GetParty(int id) { var party = _partyService.GetPartyById(id); var partyviewmodel = Areas.MasterArea.Mapper.PartyMapper.Detach(party); return(Request.CreateResponse(HttpStatusCode.OK, partyviewmodel)); }
public IActionResult ShowParty(int id) { HttpContext.Session.SetParty(id); Party party = service.GetPartyById(id); return(View("ShowParty", party)); }
public IViewComponentResult Invoke() { List <int> PartyIds = HttpContext.Session.GetParties(); List <Party> lastViewedParties = new List <Party>(); foreach (int id in PartyIds) { lastViewedParties.Add(service.GetPartyById(id)); } return(View(lastViewedParties)); }