public static DocumentListViewModel Get(DocumentoList sourceList) { DocumentListViewModel list = new DocumentListViewModel(); foreach (DocumentoInfo item in sourceList) { list.Add(DocumentViewModel.New(item)); } return(list); }
public static DocumentListViewModel Get(Documentos sourceList, IAgenteHipatia agent) { DocumentListViewModel list = new DocumentListViewModel(); foreach (Documento item in sourceList) { list.Add(DocumentViewModel.New(item, agent)); } return(list); }
public static DocumentListViewModel Get(IEnumerable <DocumentViewModel> source) { DocumentListViewModel list = new DocumentListViewModel(); foreach (DocumentViewModel item in source) { list.Add(item); } return(list); }