Пример #1
0
        // GET: demo
        public ActionResult Index()
        {
            var db  = new Models.AppDB();
            var lst = db.Phones.ToList();

            return(View(lst));
        }
Пример #2
0
        public IHttpActionResult Get()
        {
            var db = new Models.AppDB();

            return(Ok(db.Phones.First()));
        }