public IActionResult Create(CreateShoeViewModel createShoeViewModel) { this.shoeService.Create( createShoeViewModel.Id, createShoeViewModel.AmountInStore, createShoeViewModel.Price, createShoeViewModel.Type, createShoeViewModel.Size); return(RedirectToAction("List", createShoeViewModel)); }
public async Task <IActionResult> Create() { var createUserViewModel = new CreateShoeViewModel(); return(this.View(createUserViewModel)); }