Exemple #1
0
        public async Task <ActionResult> AddContact(AddContactViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                return(View(viewModel));
            }

            await DraftProvider.AddContact(viewModel.TenderGuid, viewModel.ContactId);

            return(RedirectToAction("Info", "DraftTenderInfo", new { tenderGuid = viewModel.TenderGuid }));
        }