public List <ConsumerPrintDocumentVOServeAction> GetActionsModel() { List <ConsumerPrintDocumentVOServeAction> result = new List <ConsumerPrintDocumentVOServeAction>(); if (ValuedOutcomes == null) { return(result); } foreach (var item in ValuedOutcomes) { foreach (var action in item.ServeActions) { ConsumerPrintDocumentVOServeAction model = new ConsumerPrintDocumentVOServeAction() { ServeAndAction = action.ServeAndAction, Id = action.Id, PrintDocumentValuedOutcomeId = action.ValuedOutcomeId }; result.Add(model); } } return(result); }
public ConsumerPrintDocumentVOServeActionViewModel(ConsumerPrintDocumentVOServeAction model) { this.Id = model.Id; this.ServeAndAction = model.ServeAndAction; this.ValuedOutcomeId = model.PrintDocumentValuedOutcomeId; }