예제 #1
0
        public IHttpActionResult GetOptimalStockTree(string productCategory, string color)
        {
            WebResponseContentModel <List <OptimalStockTreeHierarchy> > tmpUser = new WebResponseContentModel <List <OptimalStockTreeHierarchy> >();
            Del <List <OptimalStockTreeHierarchy> > responseStatusHandler       = ProcessContentModel;

            try
            {
                tmpUser.Content = optimalStockOrderRepo.GetOptimalStockTree(productCategory, color);
                responseStatusHandler(tmpUser);
            }
            catch (Exception ex)
            {
                responseStatusHandler(tmpUser, ex);
                return(Json(tmpUser));
            }

            return(Json(tmpUser));
        }
예제 #2
0
        public IHttpActionResult GetOptimalStockTree()
        {
            optimalStockRepo.GetOptimalStockTree("KARTON", "");

            return(Ok());
        }