//Delete public void DeleteTask(Task taskToDelete) { _dbContext.Task.Remove(taskToDelete); _dbContext.SaveChanges(); }
//Create public void AddNewTask(Task newTask) { _dbContext.Task.Add(newTask); _dbContext.SaveChanges(); }