Пример #1
0
        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();
        }
Пример #2
0
 public ApiOutputModel Post([FromBody] ApplicationsModel value)
 {
     return(_ap.Insert(value));
 }