Created
January 20, 2014 21:16
-
-
Save AdamCaviness/8529357 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[WebGet] | |
public IQueryable<Setting> GetSettings(Guid userId, Guid platformContextId) | |
{ | |
return DataSource.GetSettings(userId, platformContextId).AsQueryable<Setting>(); | |
} | |
[WebInvoke] | |
public void UpdateSetting(Guid userId, string serializedSetting) | |
{ | |
var serializationService = new SerializationService(); | |
Setting setting = serializationService.Deserialize<Setting>(serializedSetting); | |
DataSource.UpdateSetting(userId, setting.SettingKey, setting.Value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment