示例#1
0
        public HttpResponseMessage GetFAQList()
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }

            ItemsResponse <FAQ> response = new ItemsResponse <FAQ>();

            response.Items = _faqService.GetFAQList();

            return(Request.CreateResponse(response));
        }