internal static List <WorkflowPage> GetReviewPagesbyUserID(int UserID, int Page, int PageSize, int StateID)
            {
                string CacheKey           = CacheFactory.GetCacheKey(CacheFactory.Keys.Workflow + "GetReviewPagesbyUserID", UserID, Page, PageSize, StateID);
                List <WorkflowPage> Pages = CacheFactory.Get(CacheKey) as List <WorkflowPage>;

                if (Pages == null)
                {
                    Sql Query = WorkflowScript.GetPagesByUserID(UserID, Page, PageSize, StateID);
                    using (VanjaroRepo db = new VanjaroRepo())
                    {
                        Pages = db.Fetch <WorkflowPage>(Query).ToList();
                    }
                    CacheFactory.Set(CacheKey, Pages);
                }
                return(Pages);
            }
            internal static List <WorkflowPage> GetPagesbyUserID(int PortalID, int UserID)
            {
                string CacheKey = CacheFactory.GetCacheKey(CacheFactory.Keys.Workflow + "GetPagesbyUserID" + "PortalID", UserID, PortalID);
                List <WorkflowPage> WorkflowPages = CacheFactory.Get(CacheKey) as List <WorkflowPage>;

                if (WorkflowPages == null)
                {
                    Sql Query = WorkflowScript.GetPagesByUserID(PortalID, UserID);
                    using (VanjaroRepo db = new VanjaroRepo())
                    {
                        WorkflowPages = db.Fetch <WorkflowPage>(Query).ToList();
                    }

                    CacheFactory.Set(CacheKey, WorkflowPages);
                }
                return(WorkflowPages);
            }