public virtual ApiFamilyResponseModel MapBOToModel( BOFamily boFamily) { var model = new ApiFamilyResponseModel(); model.SetProperties(boFamily.Id, boFamily.Note, boFamily.PrimaryContactEmail, boFamily.PrimaryContactFirstName, boFamily.PrimaryContactLastName, boFamily.PrimaryContactPhone); return(model); }
public virtual BOFamily MapEFToBO( Family ef) { var bo = new BOFamily(); bo.SetProperties( ef.Id, ef.Note, ef.PrimaryContactEmail, ef.PrimaryContactFirstName, ef.PrimaryContactLastName, ef.PrimaryContactPhone); return(bo); }
public virtual Family MapBOToEF( BOFamily bo) { Family efFamily = new Family(); efFamily.SetProperties( bo.Id, bo.Note, bo.PrimaryContactEmail, bo.PrimaryContactFirstName, bo.PrimaryContactLastName, bo.PrimaryContactPhone); return(efFamily); }
public virtual BOFamily MapModelToBO( int id, ApiFamilyRequestModel model ) { BOFamily boFamily = new BOFamily(); boFamily.SetProperties( id, model.Note, model.PrimaryContactEmail, model.PrimaryContactFirstName, model.PrimaryContactLastName, model.PrimaryContactPhone); return(boFamily); }