public static EfCourse MapDomainToEntity(Course domain)
            {
                var entity = new EfCourse();

                entity.Id   = domain.Id;
                entity.Name = domain.Name;
                return(entity);
            }
 public static Course MapEntityToDomain(EfCourse entity)
 {
     // TODO: Figure out how to share mappings, like here for org
     return(new Course(entity.Id, null, entity.CatalogNumber, entity.Name));
 }
 public static Course MapEntityToDomainForOrganization(EfCourse entity, Organization organization)
 {
     return(new Course(entity.Id, organization, entity.CatalogNumber, entity.Name));
 }