public virtual ApiPostTypesResponseModel MapBOToModel( BOPostTypes boPostTypes) { var model = new ApiPostTypesResponseModel(); model.SetProperties(boPostTypes.Id, boPostTypes.Type); return(model); }
public virtual BOPostTypes MapEFToBO( PostTypes ef) { var bo = new BOPostTypes(); bo.SetProperties( ef.Id, ef.Type); return(bo); }
public virtual PostTypes MapBOToEF( BOPostTypes bo) { PostTypes efPostTypes = new PostTypes(); efPostTypes.SetProperties( bo.Id, bo.Type); return(efPostTypes); }
public virtual BOPostTypes MapModelToBO( int id, ApiPostTypesRequestModel model ) { BOPostTypes boPostTypes = new BOPostTypes(); boPostTypes.SetProperties( id, model.Type); return(boPostTypes); }