public AutoApprovalViewModel(Entities.DocType docType, int autoApprovalId, int manCoId) { this.DocTypeViewModel = new DocTypeViewModel(docType); this.SubDocTypeViewModel = new SubDocTypeViewModel() { Code = "All" }; this.Id = autoApprovalId; this.ManCoId = manCoId; }
public DocTypeViewModel(Entities.DocType docType) { Id = docType.Id; Code = docType.Code; Description = docType.Description; }