public void CreateLocalidades(LocalidadesServiceModel localidadesServiceModel)
 {
     using (SQLite.SQLiteConnection conexion = new SQLite.SQLiteConnection(App.RutaBD))
     {
         localidadesServiceModel.listaCreate.ForEach(m => conexion.Insert(m));
         if (_lblLocalidadesCreate != null)
         {
             _lblLocalidadesCreate.Text = "Created";
         }
     }
 }
 public void DeleteLocalidades(LocalidadesServiceModel localidadesServiceModel)
 {
     if (isAlreadyCreated())
     {
         if (localidadesServiceModel.listaDelete.Count() > 0)
         {
             using (SQLite.SQLiteConnection conexion = new SQLite.SQLiteConnection(App.RutaBD))
             {
                 localidadesServiceModel.listaDelete.ForEach(m => conexion.Delete(m));
                 if (_lblLocalidadesDelete != null)
                 {
                     _lblLocalidadesDelete.Text = "Deleted";
                 }
             }
         }
     }
 }