Example #1
0
        public IProject Get(string code)
        {
            Transportation.Entities.Project project = _projectRepository.GetByCode(code);

            if (project == null || project.DeletedAt.HasValue)
            {
                return(null);
            }

            return(new Project(project, _projectRepository));
        }
 public Project(Transportation.Entities.Project project,
                Transportation.Repository.Interfaces.IProjectRepository projectRepository)
 {
     _project           = project;
     _projectRepository = projectRepository;
 }
Example #3
0
        public IProject New()
        {
            Transportation.Entities.Project project = new Transportation.Entities.Project();

            return(new Project(project, _projectRepository));
        }
Example #4
0
 public IProject Get(Transportation.Entities.Project project)
 {
     return(new Project(project, _projectRepository));
 }