public IHttpActionResult Get() { JunctionService hotelCustomerService = CreateJUnctionService(); var hotelCustomers = hotelCustomerService.GetAllJunctions(); return(Ok(hotelCustomers)); }
private JunctionService CreateJUnctionService() { var userId = Guid.Parse(User.Identity.GetUserId()); var HotelCustomerService = new JunctionService(userId); return(HotelCustomerService); }