Exemplo n.º 1
0
        public void GetWine()
        {
            WineDa da   = new WineDa();
            Wine   wine = da.GetWine(1);

            Assert.IsTrue(wine != null);
        }
        public JsonResult GetWine(long id)
        {
            Response.AppendHeader("Access-Control-Allow-Origin", "*");
            WineDa da   = new WineDa();
            Wine   wine = da.GetWine(id);

            return(Json(wine, JsonRequestBehavior.AllowGet));
        }