public IActionResult Delete(int id, [FromServices] IDeleteReservation command) { _executor.ExecuteCommand(command, id); return(NoContent()); }
public ReservationController( INewReservation newReservation, IModelFactory modelFactory, IBuyTicket buyTicket, IDeleteReservation deleteReservation ) { this.newReservation = newReservation; this.deleteReservation = deleteReservation; this.buyTicket = buyTicket; this.modelFactory = modelFactory; }
public MainForm() { InitializeComponent(); SqlLiteDB.SqlLiteDBCreateTableIFNotExist(); this.selectClient = new SelectClient(); this.selectServices = new SelectServices(); this.selectReservation = new SelectReservation(); this.selectEmployee = new SelectEmployee(); this.getVReservation = new CreateViewVreservation(selectClient, selectReservation, selectServices, selectEmployee); this.updateClient = new UpdateClient(selectClient); this.deleteReservation = new DeleteReservation(); this.insertObjectToDB = new FasadeInsertDB(new DBInsertClient(selectClient), new DBInsertServices(selectServices), new DBInsertReservation(selectReservation), new DBInsertEmployee(selectEmployee), new SelectClient(), new SelectServices(), new SelectReservation(), new SelectEmployee()); }
public DeleteReservationUniqueValidation(IProjectionRepository projRepo, IReservationRepository reservationRepo, IDeleteReservation deleteReservation) { this.projRepo = projRepo; this.reservationRepo = reservationRepo; this.deleteReservation = deleteReservation; }
public ActionResult deleteReservation(VReservation vReservation) { deletereservation = new DeleteReservation(); deletereservation.DeleteReservation(vReservation.reservation_id); return(RedirectToAction("Index", "Reservation", new { visibleTrue = false })); }