public static EfTerm MapDomainToEntity(Term domain) { var entity = new EfTerm(); entity.Id = domain.Id; entity.Name = domain.Name; return(entity); }
public static Term MapEntityToDomainForOrganization(EfTerm entity, Organization organization) { return(new Term(entity.Id, organization, entity.Name, entity.StartDate, entity.EndDate)); }
public static Term MapEntityToDomain(EfTerm entity) { return(new Term(entity.Id, null, entity.Name, entity.StartDate, entity.EndDate)); }
public static Term MapEntityToDomain(EfTerm entity) { // TODO: Figure out how to share mappings, like here for org return(new Term(entity.Id, null, entity.Name, entity.StartDate, entity.EndDate)); }