public static Instructor MapEntityToDomain(EfInstructor entity) { // TODO: Figure out how to share mappings, like here for org return(new Instructor(entity.Id, null, entity.GivenName, entity.SurName)); }
public static Instructor MapEntityToDomainForOrganization(EfInstructor entity, Organization organization) { // TODO: Figure out how to share mappings, like here for org return(new Instructor(entity.Id, organization, entity.GivenName, entity.SurName)); }
public static EfInstructor MapDomainToEntity(Instructor domain) { var entity = new EfInstructor(); entity.Id = domain.Id; entity.GivenName = domain.GivenName; entity.SurName = domain.SurName; return(entity); }