Esempio n. 1
0
        public async Task <ActionResult> EditLot(Guid tenderGuid, string lotId)
        {
            var lotDTO = await DraftProvider.GetDraftLot(tenderGuid, lotId);

            var viewModel = new DraftLotViewModel(tenderGuid, lotDTO);

            return(View(viewModel));
        }
Esempio n. 2
0
        public async Task <ActionResult> AddLot(DraftLotViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                return(View(viewModel));
            }

            var draftLotDTO = viewModel.ToDraftDTO();
            await DraftProvider.AddDraftLot(viewModel.TenderGuid, draftLotDTO);

            return(RedirectToAction("Info", "DraftTenderInfo", new { tenderGuid = viewModel.TenderGuid }));
        }
Esempio n. 3
0
        public ActionResult AddLot(Guid tenderGuid)
        {
            var viewModel = new DraftLotViewModel(tenderGuid);

            return(View(viewModel));
        }