func (c Series) Display(id int) revel.Result { s1 := rand.NewSource(time.Now().UnixNano()) rng := rand.New(s1) series := models.GetSeriesById(int64(id)) seasons := series.GetSeasons() return c.Render(series, seasons, rng) }
func (c Season) Add(seriesId int) revel.Result { series := models.GetSeriesById(int64(seriesId)) var name string c.Params.Bind(&name, "name") season := models.Season{Name: name, Series: series} season.Add() return c.Render(series) }
func (c Season) AddForm(seriesId int) revel.Result { series := models.GetSeriesById(int64(seriesId)) return c.Render(series) }
func (c Season) Display(id int) revel.Result { series := models.GetSeriesById(int64(id)) return c.Render(series) }