示例#1
0
func (c Admin) Schedule() revel.Result {
	connection := c.connected()
	User := connection.Username

	days, pairs := database.DaysPairsData(c.DB)
	faculties := database.FacultiesList(c.DB)
	return c.Render(User, days, pairs, faculties)
}
示例#2
0
func (c Schedule) GetFaculties() revel.Result {
	faculties := database.FacultiesList(c.DB)
	return c.RenderJson(faculties)
}