public IActionResult EditCategory(Category c) { TaskDB taskDB = new TaskDB(@"Data Source=.\sqlexpress;Initial Catalog=ToDo;Integrated Security=True;"); taskDB.EditCategory(c); return(Redirect("/home/SeeCategories")); }
public IActionResult EditCategory(Category c) { TaskDB taskDB = new TaskDB(@"Data Source=.\sqlexpress;Initial Catalog=ToDo;Integrated Security=True;"); taskDB.EditCategory(c); return(Redirect("/home/SeeCategories")); }