예제 #1
0
        public HttpResponseMessage GetQA(string lang, string category, int bookId, int chapterNumber = 0)
        {
            var data = DS.GetQA(lang, category, bookId, chapterNumber);

            return(Request.CreateResponse(HttpStatusCode.OK, data));
        }
예제 #2
0
 public HttpResponseMessage ClearCache()
 {
     DS.ClearCache();
     return(Request.CreateResponse(HttpStatusCode.OK, true));
 }
예제 #3
0
        //MemoryCache MemCache = MemoryCache.Default;

        public IEnumerable <MenuItem> Get(string lang)
        {
            return(DS.GetMenu(lang));
        }