public ActionResult Create(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Referee referee = refereeService.GetById((int)id);

            if (referee == null)
            {
                return(HttpNotFound());
            }
            var timelineItem = new Timeline()
            {
                RefereeId = (int)id
            };
            TimelineViewModel _timelineViewModel = new TimelineViewModel()
            {
                TimelineItem = timelineItem,
                CategoryList = GetCategoryList(referee.TournamentId),
                LevelList    = GetLevelList()
            };

            return(View(_timelineViewModel));
        }
        public PartialViewResult GetTimeline(int?id, int?page = 1, string active = "")
        {
            Referee    referee        = refereeService.GetById((int)id);
            HttpCookie pageSizeCookie = Request.Cookies["_pageSize"];
            int        pageSize       = Convert.ToInt16(pageSizeCookie.Value);


            var tab = new TableViewModel <Timeline>()
            {
                TableData       = referee.Timelines.OrderBy(x => x.RefereeId).ToPagedList((int)page, pageSize),
                Active          = active,
                Controller      = "Referees",
                ChildController = "Timelines"
            };

            return(PartialView("_Timeline", tab));
        }