Exemplo n.º 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);
        }
Exemplo n.º 2
0
 private Maybe <Project> MaybeProject(DbProject project)
 {
     return(project != null
             ? new Maybe <Project>(project.ToModel())
             : Maybe <Project> .Fail);
 }