コード例 #1
0
        public override object OnPost(ProductDTO request)
        {
            try
            {
                if (null != request && null != request.ProductModel)
                {
                    switch (request.ActionType.ToUpper())
                    {
                    case ALERTINFO:
                        return(ProductBiz.AlterProductInfo(request));

                    case ALERTSTOCK:
                        return(ProductBiz.AlterProductStock(request));
                    }
                }
                return(ResponseStaticModel.PARAM_ERROR_MODEL);
            }
            catch (Exception ex)
            {
                ResponseStaticModel.SERVER_ERROR_MODEL.ResultEntity = ex.Message;
                return(ResponseStaticModel.SERVER_ERROR_MODEL);
            }
        }