public object PostSetProductStock(SetProductStockModel model) { CheckUserLogin(); if (string.IsNullOrWhiteSpace(model.pids)) { return(Json(new { success = false, msg = "参数异常" })); } var ids = ConvertToIEnumerable(model.pids); var type = (CommonModel.StockOpType)model.optype; ShopBranchApplication.SetProductStock(CurrentShopBranch.Id, ids, model.stock, type); return(Json(new { success = true, msg = "设置成功" })); }
public object PostSetProductStock(SetProductStockModel model) { CheckUserLogin(); if (string.IsNullOrWhiteSpace(model.pids)) { return new { success = false, msg = "参数异常" } } ; var ids = ConvertToIEnumerable(model.pids); var type = (CommonModel.StockOptionType)model.optype; ProductManagerApplication.SetProductStock(ids, model.stock, type); return(new { success = true, msg = "设置成功" }); }