public IActionResult AddStock(string name, string description) { //Call the AddStock method from DatabaseRepository. //name and description variables to be used to popualte new SQL row repository.AddStock(name, description); return(Redirect("/Home/Index")); }