Пример #1
0
        public IEnumerable <Article> GetCat(string catid)
        {
            IEnumerable <Article> list = Comercial.ListArticlesCategory(catid);

            //if (cat.Equals("category"))
            //{
            if (list == null)
            {
                throw new HttpResponseException(
                          Request.CreateResponse(HttpStatusCode.NotFound));
            }
            else
            {
                return(list);
            }
            //}

            //return null;
        }