public ActionResult AddCategory(string categoryName) { CakesPosRepository cpr = new CakesPosRepository(_connectionString); cpr.AddCategory(categoryName); return(RedirectToAction("Admin")); }