Example #1
0
        public IActionResult Add(long id, long storeId)
        {
            var model = new Wms_stockout();

            if (id == 0)
            {
                model.WarehouseId = storeId;
                return(View(model));
            }
            else
            {
                model = _stockoutServices.QueryableToEntity(c => c.StockOutId == SqlFunc.ToInt64(id) && c.IsDel == 1);
                return(View(model));
            }
        }
Example #2
0
        public IActionResult Add(string id)
        {
            var model = new Wms_stockout();

            if (id.IsEmpty())
            {
                return(View(model));
            }
            else
            {
                model = _stockoutServices.QueryableToEntity(c => c.StockOutId == SqlFunc.ToInt64(id) && c.IsDel == 1);
                return(View(model));
            }
        }