コード例 #1
0
        public IActionResult Delete(int id,
                                    [FromServices] IDeleteReservation command)
        {
            _executor.ExecuteCommand(command, id);

            return(NoContent());
        }
コード例 #2
0
 public ReservationController(
     INewReservation newReservation,
     IModelFactory modelFactory,
     IBuyTicket buyTicket,
     IDeleteReservation deleteReservation
     )
 {
     this.newReservation    = newReservation;
     this.deleteReservation = deleteReservation;
     this.buyTicket         = buyTicket;
     this.modelFactory      = modelFactory;
 }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: marcinJ81/salon_fr
 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());
 }
コード例 #4
0
 public DeleteReservationUniqueValidation(IProjectionRepository projRepo, IReservationRepository reservationRepo, IDeleteReservation deleteReservation)
 {
     this.projRepo          = projRepo;
     this.reservationRepo   = reservationRepo;
     this.deleteReservation = deleteReservation;
 }
コード例 #5
0
 public ActionResult deleteReservation(VReservation vReservation)
 {
     deletereservation = new DeleteReservation();
     deletereservation.DeleteReservation(vReservation.reservation_id);
     return(RedirectToAction("Index", "Reservation", new { visibleTrue = false }));
 }