public JsonResult Get() { Response.AppendHeader("Access-Control-Allow-Origin", "*"); WineDa da = new WineDa(); return(Json(da.GetWines(), JsonRequestBehavior.AllowGet)); }
public void GetAllWines() { WineDa da = new WineDa(); List <Wine> wines = da.GetWines(); Assert.IsTrue(wines.Count > 0); }