public ImageGalleryInfo GetGallerySettingValues(int UserModuleID, int PortalID, string culture)
 {
     ImageGalleryInfo infoObject = new ImageGalleryInfo();
     List<KeyValuePair<string, object>> ParaMeterCollection = new List<KeyValuePair<string, object>>();
     try
     {
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@UserModuleID", UserModuleID));
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@PortalID", PortalID));
         ParaMeterCollection.Add(new KeyValuePair<string, object>("@Culture", culture));
         SQLHandler sagesql = new SQLHandler();
         infoObject = sagesql.ExecuteAsObject<ImageGalleryInfo>("[dbo].[usp_aspx_GetGallerySettings]", ParaMeterCollection);
         return infoObject;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
    public List<int> ReturnDimension(Int32 UserModuleID, Int32 PortalID, string culture)
    {
        List<int> param = new List<int>();
        ImageGalleryInfo info = new ImageGalleryInfo();
        ImageGallerySqlProvider settings = new ImageGallerySqlProvider();

        info = settings.GetGallerySettingValues(UserModuleID, PortalID, culture);
        param.Add(int.Parse(info.ImageWidth));
        param.Add(int.Parse(info.ImageHeight));
        param.Add(int.Parse(info.ThumbWidth));
        param.Add(int.Parse(info.ThumbHeight));
        //param.Add(int.Parse(info.ZoomShown));
        return param;
    }
 public ImageGalleryInfo ReturnSettings(Int32 UserModuleID, Int32 PortalID, string culture)
 {
     ImageGalleryInfo gallerySettingsInfo = new ImageGalleryInfo();
     ImageGallerySqlProvider settings = new ImageGallerySqlProvider();
     gallerySettingsInfo = settings.GetGallerySettingValues(UserModuleID, PortalID, culture);
     return gallerySettingsInfo;
 }