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)); }
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 })); }
public ActionResult AddLot(Guid tenderGuid) { var viewModel = new DraftLotViewModel(tenderGuid); return(View(viewModel)); }