public void EliminarTarea(Tarea tarea) { if (Tareas.Contains(tarea)) { Tareas.Remove(tarea); } }
public void BorrarTarea(int id) { Tareas.Remove(Tareas.Where(i => i.Id == id).Single()); SaveChanges(); Console.WriteLine("Tarea Borrado."); }