public bool InsertRange(List <Complemento> lista) { try { using (var db = new SyncContext()) { db.AddRange(lista); db.SaveChanges(); return(true); } } catch (Exception ex) { Ambiente.Message("Algo salĂo mal con: " + MethodBase.GetCurrentMethod().Name + " @" + GetType().Name + "\n" + ex.Message); } return(false); }