/// <summary> /// Agrega un libro nuevo sin pasar por la importacion /// </summary> /// <param name="nuevo"></param> public void AgregarLibro(Libro nuevo, bool save = true) { //_ctx.Debug(); if (_ctx.Find <Libro>(nuevo.ID_Real) != null) { _ctx.Update(nuevo); } else { _ctx.Add(nuevo); } //_ctx.Debug(); if (save) { _ctx.SaveChanges(); } }