Exemplo n.º 1
0
        public IActionResult OrderBus()
        {
            var viewModel = new BusOrderViewModel();

            viewModel.OrderDate = DateTime.Now;
            return(View(viewModel));
        }
Exemplo n.º 2
0
        public IActionResult OrderBus(BusOrderViewModel viewModel)
        {
            var busOrder = mapper.Map <BusOrder>(viewModel);

            busOrderRepository.Save(busOrder);
            viewModel.OrderDate = DateTime.Now;
            return(View(viewModel));
        }
Exemplo n.º 3
0
 public IActionResult OrderBus(BusOrderViewModel viewModel)
 {
     return(View());
 }
Exemplo n.º 4
0
 public IActionResult ManageWorker(BusOrderViewModel viewModel)
 {
     return(View());
 }