Exemple #1
0
 public ActionResult Index()
 {
     Data[] arr = db.GetAll();
     Array.Sort(arr, new DataSorter());
     ViewBag.getall = arr;
     ViewBag.find2  = db.Find(2);
     return(View());
 }
Exemple #2
0
        public IActionResult Index()
        {
            IEnumerable <Phone> phones = phoneDictionary.GetAll();

            ViewBag.Objects = phones;
            return(View());
        }
Exemple #3
0
 public IEnumerable <Phone> Get()
 {
     return(phoneDictionary.GetAll().OrderBy(i => i.FIO));
 }