/// <summary> /// Crear Nota /// </summary> /// <param name="title"></param> /// <param name="data"></param> /// <returns></returns> public async Task<bool> CreateNote(string title, string data) { bool valNote = false; try { string path = null; var conn = GetConnection(ref path); TablaNota insertaNota = new TablaNota() { Titulo = title, Dato = data, Fecha = String.Format("{0:dd/MM/yyyy}", DateTime.Now), }; await conn.InsertAsync(insertaNota); valNote = true; } catch (Exception exception) { return false; } return valNote; }
/// <summary> /// Eliminar Nota /// </summary> /// <param name="dataNotes"></param> /// <returns></returns> public bool RemoveNote(TablaNota dataNotes) { bool valNote = false; try { string path = null; var conn = GetConnection(ref path); conn.DeleteAsync(dataNotes); valNote = true; } catch (Exception) { return false; } return valNote; }
private void ExecuteNotaSeleccionadaAsync(TablaNota obj) { }
public void EliminarNotaRapida(TablaNota dataNotes) { RemoverNota = bdmanager.RemoveNote(dataNotes); }