public Configuration(Account account, Profile profile, Settings settings) { this.Account = account; this.Profile = profile; this.Settings = settings; }
public object PostProfile(Profile profile) { File.WriteAllText(HostingEnvironment.MapPath("~/App_Plugins/PieMan/profile.config"), JsonConvert.SerializeObject((object) profile, Newtonsoft.Json.Formatting.Indented)); return (object) profile; }