Exemple #1
0
 public async TaskThreading DeleteTask(Models.Task task)
 {
     _db.Task.Remove(task);
     await _db.SaveChangesAsync();
 }
Exemple #2
0
 public async TaskThreading ChangeTask(Models.Task task)
 {
     await _db.SaveChangesAsync();
 }
Exemple #3
0
        public async TaskThreading AddTask(Models.Task task)
        {
            await _db.Task.AddAsync(task);

            await _db.SaveChangesAsync();
        }