Beispiel #1
0
 public ActionResult GetByFilter(string filter)
 {
     return(Json(PeriodRepository.All()
                 .Where(p => p.Years.Year.ToString().ToUpper().Contains(filter.ToUpper()))
                 .Select(p => p.Id), JsonRequestBehavior.AllowGet));
 }
Beispiel #2
0
 public ActionResult GetAll()
 {
     return(View(PeriodRepository.All().Select(p => PeriodModel.ToModel(p))));
 }