public virtual ApiCommunityActionTemplateResponseModel MapBOToModel( BOCommunityActionTemplate boCommunityActionTemplate) { var model = new ApiCommunityActionTemplateResponseModel(); model.SetProperties(boCommunityActionTemplate.Id, boCommunityActionTemplate.ExternalId, boCommunityActionTemplate.JSON, boCommunityActionTemplate.Name); return(model); }
public virtual BOCommunityActionTemplate MapEFToBO( CommunityActionTemplate ef) { var bo = new BOCommunityActionTemplate(); bo.SetProperties( ef.Id, ef.ExternalId, ef.JSON, ef.Name); return(bo); }
public virtual CommunityActionTemplate MapBOToEF( BOCommunityActionTemplate bo) { CommunityActionTemplate efCommunityActionTemplate = new CommunityActionTemplate(); efCommunityActionTemplate.SetProperties( bo.ExternalId, bo.Id, bo.JSON, bo.Name); return(efCommunityActionTemplate); }
public virtual BOCommunityActionTemplate MapModelToBO( string id, ApiCommunityActionTemplateRequestModel model ) { BOCommunityActionTemplate boCommunityActionTemplate = new BOCommunityActionTemplate(); boCommunityActionTemplate.SetProperties( id, model.ExternalId, model.JSON, model.Name); return(boCommunityActionTemplate); }