Beispiel #1
0
        public IActionResult Add(ToDoItems t, string name)
        {
            TaskDB   taskDB = new TaskDB(@"Data Source=.\sqlexpress;Initial Catalog=ToDo;Integrated Security=True;");
            Category cat    = taskDB.GetCategoryId(name);

            taskDB.AddToDo(t, cat);
            return(Redirect("/home/home"));
        }