public ActionResult Index() { Data[] arr = db.GetAll(); Array.Sort(arr, new DataSorter()); ViewBag.getall = arr; ViewBag.find2 = db.Find(2); return(View()); }
public Phone Get(int id) { return(phoneDictionary.Find(id)); }
public IActionResult Update(int id) { ViewBag.Object = phoneDictionary.Find(id); return(View()); }