public IActionResult AddProduct(AddProductVM viewModel) { if (!ModelState.IsValid) { return(View(viewModel)); } DataBaseTools.AddProduct(viewModel); return(RedirectToAction("Index", "Home")); }