private void button25_Click(object sender, EventArgs e) { var spApp = new ApplicationProcessor(ConfigurationManager.AppSettings["SPStoragePath"]); MessageBox.Show( spApp.Update(spApp.Gets().FirstOrDefault().Id, new ApplicationsModel { Name = "Update Test App" }).ToString() ); dgv.DataSource = spApp.Gets().ToDataTable(); }
public ApiOutputModel Put([FromBody] ApplicationsModel value) { return(_ap.Update(value.Id, value)); }