public JsonResult Get()
        {
            Response.AppendHeader("Access-Control-Allow-Origin", "*");
            WineDa da = new WineDa();

            return(Json(da.GetWines(), JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public void GetAllWines()
        {
            WineDa      da    = new WineDa();
            List <Wine> wines = da.GetWines();

            Assert.IsTrue(wines.Count > 0);
        }