public static string GetPhotoGalleryByItemId(string itemName, long itemId, string instanceName) { var instance = new CustomerFramework { Name = instanceName }; instance.LoadConfig(); return(PhotoGallery.JsonList(PhotoGallery.GetByItemId(itemName, itemId, instance.Config.ConnectionString))); }