예제 #1
0
        // GET: api/PlotCategory/5
        public List <PlotCategory> Get(int id)
        {
            var dc = new ErehwonDataContext();

            return(dc.PlotCategories.Where(x => x.PlotCategoryID == id).ToList());
        }
예제 #2
0
        // GET: api/PlotCategory
        public List <PlotCategory> Get()
        {
            var dc = new ErehwonDataContext();

            return(dc.PlotCategories.ToList());
        }