public WasteCodesBlock(IList<MergeField> mergeFields, NotificationApplication notification) { CorrespondingMergeFields = MergeFieldLocator.GetCorrespondingFieldsForBlock(mergeFields, TypeName); data = new WasteCodesViewModel(notification, new WasteCodeInfoFormatter()); AnnexMergeFields = MergeFieldLocator.GetAnnexMergeFields(mergeFields, TypeName); }
public WasteCodesBlock(IList <MergeField> mergeFields, NotificationApplication notification) { CorrespondingMergeFields = MergeFieldLocator.GetCorrespondingFieldsForBlock(mergeFields, TypeName); data = new WasteCodesViewModel(notification, new WasteCodeInfoFormatter()); AnnexMergeFields = MergeFieldLocator.GetAnnexMergeFields(mergeFields, TypeName); }
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"); }