コード例 #1
0
        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);
        }
コード例 #2
0
 private Maybe <Project> MaybeProject(DbProject project)
 {
     return(project != null
             ? new Maybe <Project>(project.ToModel())
             : Maybe <Project> .Fail);
 }