public ActionResult ShowMyProjects(string SelectFilter, int?page)
        {
            ViewBag.SelectFilter = new SelectList(sortModel.Options);

            var projects = ProjectHelper.GetProjectWithTicketByUserByProjectManager(User.Identity.GetUserId());

            if (SelectFilter == "Creation Date")
            {
                projects = ProjectHelper.SortTicketsByTitle(projects);
            }
            else if (SelectFilter == "Title")
            {
                projects = ProjectHelper.SortTicketsByTitle(projects);
            }

            return(View(PaginateList(projects, page)));
        }
        public ActionResult Index(string SelectFilter, int?page, string searchString)
        {
            //SortViewModel sortModel = new SortViewModel();
            ViewBag.SelectFilter = new SelectList(sortModel.Options);


            var projects = ProjectHelper.GetProjects();

            if (SelectFilter == "Creation Date")
            {
                projects = ProjectHelper.SortTicketsByTitle(projects);
            }
            else if (SelectFilter == "Title")
            {
                projects = ProjectHelper.SortTicketsByTitle(projects);
            }

            return(View(PaginateList(projects, page)));
        }