public virtual ApiDestinationResponseModel MapBOToModel( BODestination boDestination) { var model = new ApiDestinationResponseModel(); model.SetProperties(boDestination.Id, boDestination.CountryId, boDestination.Name, boDestination.Order); return(model); }
public virtual BODestination MapEFToBO( Destination ef) { var bo = new BODestination(); bo.SetProperties( ef.Id, ef.CountryId, ef.Name, ef.Order); return(bo); }
public virtual Destination MapBOToEF( BODestination bo) { Destination efDestination = new Destination(); efDestination.SetProperties( bo.CountryId, bo.Id, bo.Name, bo.Order); return(efDestination); }
public virtual BODestination MapModelToBO( int id, ApiDestinationRequestModel model ) { BODestination boDestination = new BODestination(); boDestination.SetProperties( id, model.CountryId, model.Name, model.Order); return(boDestination); }