Esempio n. 1
0
        public HttpResponseMessage GetProductDependency()
        {
            ProductBO productBo = new ProductBO();
            var       obj       = productBo.GetDependencyDetails();

            if (obj != null)
            {
                return(Request.CreateResponse(HttpStatusCode.OK, obj));
            }
            else
            {
                return(Request.CreateResponse(HttpStatusCode.ExpectationFailed, logic.ErrorMessage));
            }
        }