public virtual ApiPersonResponseModel MapBOToModel( BOPerson boPerson) { var model = new ApiPersonResponseModel(); model.SetProperties(boPerson.PersonId, boPerson.PersonName); return(model); }
public virtual BOPerson MapEFToBO( Person ef) { var bo = new BOPerson(); bo.SetProperties( ef.PersonId, ef.PersonName); return(bo); }
public virtual Person MapBOToEF( BOPerson bo) { Person efPerson = new Person(); efPerson.SetProperties( bo.PersonId, bo.PersonName); return(efPerson); }
public virtual BOPerson MapModelToBO( int personId, ApiPersonRequestModel model ) { BOPerson boPerson = new BOPerson(); boPerson.SetProperties( personId, model.PersonName); return(boPerson); }