示例#1
0
        private void ConfigureAddBreadcrumbs(BLL.Models.Semester semester, BLL.Models.Department department, BLL.Models.University university)
        {
            ConfigureListBreadcrumbs(semester, department, university);

            ViewBag.Breadcrumbs.Add(
                new Breadcrumb
            {
                Controller = "LessonsManagement",
                Action     = "Add",
                Title      = "Dodawanie przedmiotu",
                Params     = new Dictionary <string, string>
                {
                    { "semesterId", semester.SemesterId.ToString() },
                    { "departmentId", department.DepartmentId.ToString() }
                }
            }
                );
        }
示例#2
0
        private void ConfigureLessonsBreadcrumbs(BLL.Models.Semester semester, BLL.Models.Department department, BLL.Models.University university)
        {
            ConfigureSemestersBreadcrumbs(department, includeTitleDescription: false);

            ViewBag.Breadcrumbs.Add(
                new Breadcrumb
            {
                Controller = "List",
                Action     = "Lessons",
                Title      = semester.Number + " - Przedmioty",
                Params     = new Dictionary <string, string>
                {
                    { "semesterId", semester.SemesterId.ToString() },
                    { "departmentId", department.DepartmentId.ToString() }
                }
            }
                );
        }
示例#3
0
 private void ConfigureListBreadcrumbs(BLL.Models.Semester semester, BLL.Models.Department department, BLL.Models.University university)
 {
     ViewBag.Breadcrumbs = new List <Breadcrumb>
     {
         new Breadcrumb
         {
             Controller = "List",
             Action     = "AvailableUniversities",
             Title      = "Uczelnie"
         },
         new Breadcrumb
         {
             Controller = "List",
             Action     = "Departments",
             Title      = university.Abbreviation,
             Params     = new Dictionary <string, string>
             {
                 { "universityId", university.UniversityId.ToString() }
             }
         },
         new Breadcrumb
         {
             Controller = "List",
             Action     = "Semesters",
             Title      = department.Abbreviation,
             Params     = new Dictionary <string, string>
             {
                 { "departmentId", department.DepartmentId.ToString() },
             }
         },
         new Breadcrumb
         {
             Controller = "List",
             Action     = "Lessons",
             Title      = semester.Number,
             Params     = new Dictionary <string, string>
             {
                 { "semesterId", semester.SemesterId.ToString() },
                 { "departmentId", department.DepartmentId.ToString() }
             }
         }
     };
 }