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)); }
public HttpResponseMessage ClearCache() { DS.ClearCache(); return(Request.CreateResponse(HttpStatusCode.OK, true)); }
//MemoryCache MemCache = MemoryCache.Default; public IEnumerable <MenuItem> Get(string lang) { return(DS.GetMenu(lang)); }