public static Project ToModel(this DbProject dbProject, DbWorkflow dbWorkflow) { var model = dbProject.ToModel(); // TODO: Uncomment after workflow extensions have been written. // model.Workflow = dbWorkflow.ToModel(); return(model); }
private Maybe <Project> MaybeProject(DbProject project) { return(project != null ? new Maybe <Project>(project.ToModel()) : Maybe <Project> .Fail); }