Exemple #1
0
        ToDoCategory IToDoRepository <ToDoCategory> .Create()
        {
            ToDoCategory myResult = new ToDoCategory()
            {
                Title = "Neue Kategorie"
            };

            ToDoCategories.Add(myResult);

            this.SaveChanges();

            return(myResult);
        }
Exemple #2
0
 public void Delete(ToDoCategory myToDoCategory)
 {
     ToDoCategories.Remove(myToDoCategory);
     this.SaveChanges();
 }
Exemple #3
0
 public void Update(ToDoCategory myToDoCategory)
 {
     this.SaveChanges();
 }