public async Task <ActionResult> AjaxForm(decimal todayCode, int categoryId) { SupplierAmountProductDA _da = new SupplierAmountProductDA(); var requestWare = await _apiStorageWare.GetRequestWareSummaryByProduct(todayCode, categoryId); var lst = _da.GetSupplierByCategoryId(categoryId); ////var lst = await _supplierAmount.GetSupplierByCategoryId(requestWare.CateID.Value); //var model = new StorageWarehousingItem(); ////if (DoAction == ActionType.Edit) //// model = _api.GetStorageWarehousingItem(ArrId.FirstOrDefault()); //ViewBag.UserID = UserItem.UserId; //ViewBag.User = UserItem.UserName; //var agent = _dnAgencyApi.GetItemById(UserItem.AgencyID); //ViewBag.Wallet = agent.WalletValue; //ViewBag.Deposit = UserItem.AgencyDeposit ?? 0; //ViewBag.marketId = UserItem.MarketID; //ViewBag.areaId = UserItem.AreaID; //ViewBag.listtime = TypeTime.Hours(DateTime.Today.AddDays(1).TotalSeconds(), DateTime.Now.AddHours(12).TotalSeconds()); //ViewBag.Action = DoAction; return(View(lst)); }