// GET: demo public ActionResult Index() { var db = new Models.AppDB(); var lst = db.Phones.ToList(); return(View(lst)); }
public IHttpActionResult Get() { var db = new Models.AppDB(); return(Ok(db.Phones.First())); }