public ActionResult Save(Bam.Net.ServiceProxy.Secure.ApiKey[] values) { try { ApiKeyCollection saver = new ApiKeyCollection(); saver.AddRange(values); saver.Save(); return(Json(new { Success = true, Message = "", Dao = "" })); } catch (Exception ex) { return(GetErrorResult(ex)); } }
public ActionResult Save(Bam.Net.CoreServices.ApplicationRegistration.Data.Dao.ApiKey[] values) { try { ApiKeyCollection saver = new ApiKeyCollection(); saver.AddRange(values); saver.Save(); return(Json(new { Success = true, Message = "", Dao = "" })); } catch (Exception ex) { return(GetErrorResult(ex)); } }
public static void CleanUp() { FilesToDelete.Each(file => { if (File.Exists(file)) { File.Delete(file); } }); Prepare(); ApiKeyCollection keys = ApiKey.LoadAll(); keys.Delete(); SecureSessionCollection sessions = SecureSession.LoadAll(); sessions.Delete(); ApplicationCollection all = Application.LoadAll(); all.Delete(); ClearAppsAndStopServers(); }