public virtual ApiCountryResponseModel MapBOToModel( BOCountry boCountry) { var model = new ApiCountryResponseModel(); model.SetProperties(boCountry.Id, boCountry.Name); return(model); }
public virtual BOCountry MapEFToBO( Country ef) { var bo = new BOCountry(); bo.SetProperties( ef.Id, ef.Name); return(bo); }
public virtual Country MapBOToEF( BOCountry bo) { Country efCountry = new Country(); efCountry.SetProperties( bo.Id, bo.Name); return(efCountry); }
public virtual BOCountry MapModelToBO( int id, ApiCountryRequestModel model ) { BOCountry boCountry = new BOCountry(); boCountry.SetProperties( id, model.Name); return(boCountry); }