public IHttpActionResult Get() { GuestService guestService = CreateGuestService(); var guests = guestService.GetGuests(); return(Ok(guests)); }
public ActionResult Index() { var userId = User.Identity.GetUserId(); var service = new GuestService(userId); var model = service.GetGuests().OrderBy(g => g.LastName); return(View(model)); }