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)); }
public IHttpActionResult GetOptimalStockTree() { optimalStockRepo.GetOptimalStockTree("KARTON", ""); return(Ok()); }