public IActionResult CatAdd(string name) { TaskDB taskDB = new TaskDB(@"Data Source=.\sqlexpress;Initial Catalog=ToDo;Integrated Security=True;"); taskDB.AddCategory(name); return(Redirect("/home/seecategories")); }
public IActionResult CatAdd(string name) { TaskDB taskDB = new TaskDB(@"Data Source=.\sqlexpress;Initial Catalog=ToDo;Integrated Security=True;"); taskDB.AddCategory(name); return(Redirect("/home/seecategories")); }