Ejemplo n.º 1
0
        public IActionResult Create(CreateShoeViewModel createShoeViewModel)
        {
            this.shoeService.Create(
                createShoeViewModel.Id,
                createShoeViewModel.AmountInStore,
                createShoeViewModel.Price,
                createShoeViewModel.Type,
                createShoeViewModel.Size);

            return(RedirectToAction("List", createShoeViewModel));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Create()
        {
            var createUserViewModel = new CreateShoeViewModel();

            return(this.View(createUserViewModel));
        }