Example #1
0
        public void DeleteTask(int id)
        {
            SchedulerAppEntities entities = new SchedulerAppEntities();

            Task task = entities.Tasks.First(t => t.TaskId == id);
            entities.Tasks.Remove(task);
            entities.SaveChanges();
        }
Example #2
0
 public Base()
 {
     entities = new SchedulerAppEntities();
 }