Пример #1
0
        public async Task <IActionResult> Order(OrderViewModel model)
        {
            OrderDto orderDto = new OrderDto()
            {
                AccountId = model.AccountId,
                CourseId  = model.CourseId,
                Amount    = model.Amount
            };

            await _orderService.Order(orderDto);

            return(View("Index"));
        }