public virtual ApiPostTypeResponseModel MapBOToModel( BOPostType boPostType) { var model = new ApiPostTypeResponseModel(); model.SetProperties(boPostType.Id, boPostType.Type); return(model); }
public virtual BOPostType MapEFToBO( PostType ef) { var bo = new BOPostType(); bo.SetProperties( ef.Id, ef.Type); return(bo); }
public virtual PostType MapBOToEF( BOPostType bo) { PostType efPostType = new PostType(); efPostType.SetProperties( bo.Id, bo.Type); return(efPostType); }
public virtual BOPostType MapModelToBO( int id, ApiPostTypeRequestModel model ) { BOPostType boPostType = new BOPostType(); boPostType.SetProperties( id, model.Type); return(boPostType); }