private void button27_Click(object sender, EventArgs e) { var spApp = new ApplicationProcessor(ConfigurationManager.AppSettings["SPStoragePath"]); MessageBox.Show( spApp.Delete(spApp.Gets().FirstOrDefault().Id).ToString() ); dgv.DataSource = spApp.Gets().ToDataTable(); }
private void button24_Click(object sender, EventArgs e) { var spApp = new ApplicationProcessor(ConfigurationManager.AppSettings["SPStoragePath"]); MessageBox.Show( spApp.Insert(new ApplicationsModel { Id = new Guid(), Name = "Test App", ConnectionString = "Contoh ConnectionString", IsActive = true }).ToString() ); dgv.DataSource = spApp.Gets().ToDataTable(); }
public List <ApplicationsModel> Get() { return(_ap.Gets()); }