[WebMethod] public List<RestaurantCategory> GetAllCategories() { return dc.RestaurantCategories.ToList(); } [WebMethod] public List<RestaurantCategory> GetCategoryByPKID(int pkcategoryId) { var query = dc.RestaurantCategories.Where(c => c.PkCategoryId == pkcategoryId).ToList(); return query; }
RRFDataContext dc = new RRFDataContext(); WebService objProxy = new WebService(); RestaurantCategory objcategoryws = new RestaurantCategory(); public List<RestaurantCategory> GetAllCategories() { return dc.RestaurantCategories.ToList(); } public localhost.RestaurantCategory GetCategoryByPKID(int pkcategoryId) { return ((objProxy.GetCategoryByPKID(pkcategoryId)); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)