Exemplo n.º 1
0
        public async Task StartVROTenderOffersFinancialCheckingAsync(string tenderIdString, decimal estimatedValue)
        {
            int tenderId = Util.Decrypt(tenderIdString);

            Check.ArgumentNotNullOrEmpty(nameof(tenderId), tenderId.ToString());
            Tender tender = await _tenderQueries.FindTenderForOpenCheckStageByTenderId(tenderId);

            IsValidStartVROTenderOffersFinancialCheckingAsync(tender);
            if (tender.VRORelatedBranchId == null)
            {
                tender.UpdateEstimatedValue(estimatedValue);
            }
            tender.UpdateTenderStatus(Enums.TenderStatus.VROFinancialCheckingOpening, "", _httpContextAccessor.HttpContext.User.UserId(), TenderActions.StartVROOffersTechnicalChecking);
            await _tenderCommands.UpdateAsync(tender);
        }