public virtual ApiCountryRequirementResponseModel MapBOToModel( BOCountryRequirement boCountryRequirement) { var model = new ApiCountryRequirementResponseModel(); model.SetProperties(boCountryRequirement.Id, boCountryRequirement.CountryId, boCountryRequirement.Details); return(model); }
public virtual BOCountryRequirement MapEFToBO( CountryRequirement ef) { var bo = new BOCountryRequirement(); bo.SetProperties( ef.Id, ef.CountryId, ef.Details); return(bo); }
public virtual CountryRequirement MapBOToEF( BOCountryRequirement bo) { CountryRequirement efCountryRequirement = new CountryRequirement(); efCountryRequirement.SetProperties( bo.CountryId, bo.Details, bo.Id); return(efCountryRequirement); }
public virtual BOCountryRequirement MapModelToBO( int id, ApiCountryRequirementRequestModel model ) { BOCountryRequirement boCountryRequirement = new BOCountryRequirement(); boCountryRequirement.SetProperties( id, model.CountryId, model.Details); return(boCountryRequirement); }