public ActionResult GetUserSettings() { if (string.IsNullOrWhiteSpace(Context.UserId)) { return(CreateResponse("Unable to get token")); } Settings settings = userCore.GetSettings(ObjectId.Parse(Context.UserId)); return(CreateResponse(data: JsonConvert.SerializeObject(new { enabledNotifications = settings.EnabledNotifications, notificationRecipients = settings.NotificationRecipients }), success: true)); }