Exemple #1
0
        // GET: api/Product
        public HttpResponseMessage GetAll()
        {
            HttpResponseMessage oResponse = null;

            try
            {
                var ProductList = _productBL.GetAll();

                if (ProductList != null)
                {
                    oResponse = CommunicationHelper.GetHttpResponseMessage(Request, ProductList);
                }
            }
            catch (Exception ex)
            {
                oResponse = CommunicationHelper.GetException(ex, this.Request);
            }

            return(oResponse);
        }