public JsonResult GetPeriod() { DropDownListsRepository model = new DropDownListsRepository(); return Json(model.GetPeriod().OrderBy(o => o.Name).Select(c => new { PeriodID = c.ID, Period = c.Name }).OrderBy(o => o.Period), JsonRequestBehavior.AllowGet); }