public void CreateAsesores(AsesoresServiceModel asesoresServiceModel) { using (SQLite.SQLiteConnection conexion = new SQLite.SQLiteConnection(App.RutaBD)) { asesoresServiceModel.listaCreate.ForEach(m => conexion.Insert(m)); if (_lblAsesoresCreate != null) { _lblAsesoresCreate.Text = "Created"; } } }
public void DeleteAsesores(AsesoresServiceModel asesoresServiceModel) { if (isAlreadyCreated()) { if (asesoresServiceModel.listaDelete.Count() > 0) { using (SQLite.SQLiteConnection conexion = new SQLite.SQLiteConnection(App.RutaBD)) { asesoresServiceModel.listaDelete.ForEach(m => conexion.Delete(m)); if (_lblAsesoresDelete != null) { _lblAsesoresDelete.Text = "Deleted"; } } } } }