Exemple #1
0
 public void Edit(Task task)
 {
     if (task != null)
     {
         db.Entry(task).State = EntityState.Modified;
     }
 }
Exemple #2
0
 public void Add(int categoryId, Task task)
 {
     var category = db.Categories.Find(categoryId);
     if (category != null)
     {
         if (task != null)
         {
             category.Tasks.Add(task);
         }
     }
 }
Exemple #3
0
 public void Edit(Task task)
 {
     repository.Edit(task);
 }
Exemple #4
0
 public void Add(int categoryId, Task task)
 {
     repository.Add(categoryId, task);
 }