public IActionResult Create(CreateSupplierViewModel input) { if (!ModelState.IsValid) { return(this.View()); } var supplier = _suppliersService.Create(input.Name); return(this.Redirect("/Deliveries/Create")); }
public IActionResult Create(CreateSupplierViewModel input) { if (!ModelState.IsValid) { return(this.View()); } var supplier = _suppliersService.Create(input.Name); return(this.Redirect("/Deliveries/Create")); }