public ActionResult Index() { Data[] arr = db.GetAll(); Array.Sort(arr, new DataSorter()); ViewBag.getall = arr; ViewBag.find2 = db.Find(2); return(View()); }
public IActionResult Index() { IEnumerable <Phone> phones = phoneDictionary.GetAll(); ViewBag.Objects = phones; return(View()); }
public IEnumerable <Phone> Get() { return(phoneDictionary.GetAll().OrderBy(i => i.FIO)); }