Пример #1
0
        public ActionResult TeamList(int activeItemId = -1)
        {
            var bsTeam = new BLTeam();

            return(View("../CoAdvisor/TeamList", new VmTeamCollection
            {
                HtmlControlId = "CoAdvisor_TeamList",
                DataAction = "ats",
                DataController = "CoAdvisor",
                AllowDownlaod = true,
                AllowEdit = true,
                AllowDelete = true,
                ActiveItemId = activeItemId,
                Draggable = false,
                ShowSearchBox = false,
                ParentHtmlControlId = "TeamList_ParentHtmlControlId",
                OnItemSelected = "",
                TeamList = bsTeam.GetTeamsByCoAdvisor(CurrentUserId)
            }));
        }