示例#1
0
 public AjaxReturn DefaultPost(Settings json)
 {
     Database.BeginTransaction();
     Database.Update(json);
     _settings = Database.QueryOne<Settings>("SELECT * FROM Settings");
     Database.Commit();
     return new AjaxReturn() { message = "Settings saved", redirect = "/Admin" };
 }