public static AccomodationModel ToModel(this AccomodationEntity accomodation) { return(new AccomodationModel { Number = accomodation.Number }); }
public static Accomodation ToBusiness(this AccomodationEntity personEntity) { return(new Accomodation( AccomodationNumber.Create(personEntity.Number).Value )); }