Beispiel #1
0
        public IActionResult UpdateReservation(int reservationId)
        {
            var reservation = _sportEventManager.GetReservation(reservationId);
            var hall        = _hallManager.GetHallReservation(reservation.HallId);

            hall.Building    = _buildingManager.GetBuilding(hall.BuildingId);
            reservation.Hall = hall;

            var model = new ReservationModel
            {
                Reservation = reservation,
                SportEvents = _sportEventManager.ViewAllSportEvents()
            };


            return(View(model));
        }
Beispiel #2
0
        public IActionResult GetBuilding(int id)
        {
            var building = _manager.GetBuilding(id);

            if (building == null)
            {
                return(NotFound());
            }

            var buildingMapped = _mapper.Map <BuildingDTO>(building);

            return(this.HAL(buildingMapped, buildingMapped.GetLinks()));
        }
        public Building GetBuilding()
        {
            var buildingId = "1";////////VER

            return(_buildingManager.GetBuilding(buildingId));
        }
Beispiel #4
0
 public ViewResult UpdateBuilding(int id)
 {
     return(View(_buildingManager.GetBuilding(id)));
 }
Beispiel #5
0
 public override Props GetProps(ConstructionSite component)
 {
     return(ConstructionSiteActor.Props(component, buildingManager.GetBuilding(component.Building)));
 }