public SubDocTypeViewModel(Entities.SubDocType subDocType) { Id = subDocType.Id; Code = subDocType.Code; Description = subDocType.Description; DocTypeViewModel = new DocTypeViewModel(subDocType.DocType); }
public void AddDocTypes(IList <Entities.DocType> docTypes) { foreach (Entities.DocType docType in docTypes) { var avm = new DocTypeViewModel(docType); DocTypes.Add(avm); } }