public WasteCodesBlock(IList<MergeField> mergeFields, NotificationApplication notification)
        {
            CorrespondingMergeFields = MergeFieldLocator.GetCorrespondingFieldsForBlock(mergeFields, TypeName);
            data = new WasteCodesViewModel(notification, new WasteCodeInfoFormatter());

            AnnexMergeFields = MergeFieldLocator.GetAnnexMergeFields(mergeFields, TypeName);
        }
Exemple #2
0
        public WasteCodesBlock(IList <MergeField> mergeFields, NotificationApplication notification)
        {
            CorrespondingMergeFields = MergeFieldLocator.GetCorrespondingFieldsForBlock(mergeFields, TypeName);
            data = new WasteCodesViewModel(notification, new WasteCodeInfoFormatter());

            AnnexMergeFields = MergeFieldLocator.GetAnnexMergeFields(mergeFields, TypeName);
        }
Exemple #3
0
        public async Task <ActionResult> Index(Guid id, WasteCodesViewModel model)
        {
            var wasteType = mapper.Map <WasteType>(model);

            await mediator.SendAsync(new SetDraftData <WasteType>(id, wasteType));

            return(RedirectToAction("Index", "StateOfExport"));
        }
        public async Task<ActionResult> Index(Guid id, WasteCodesViewModel model)
        {
            var wasteType = mapper.Map<WasteType>(model);

            await mediator.SendAsync(new SetDraftData<WasteType>(id, wasteType));

            return RedirectToAction("Index", "StateOfExport");
        }