public virtual ApiClientCommunicationResponseModel MapBOToModel( BOClientCommunication boClientCommunication) { var model = new ApiClientCommunicationResponseModel(); model.SetProperties(boClientCommunication.Id, boClientCommunication.ClientId, boClientCommunication.DateCreated, boClientCommunication.EmployeeId, boClientCommunication.Note); return(model); }
public virtual BOClientCommunication MapEFToBO( ClientCommunication ef) { var bo = new BOClientCommunication(); bo.SetProperties( ef.Id, ef.ClientId, ef.DateCreated, ef.EmployeeId, ef.Notes); return(bo); }
public virtual ClientCommunication MapBOToEF( BOClientCommunication bo) { ClientCommunication efClientCommunication = new ClientCommunication(); efClientCommunication.SetProperties( bo.ClientId, bo.DateCreated, bo.EmployeeId, bo.Id, bo.Notes); return(efClientCommunication); }
public virtual BOClientCommunication MapModelToBO( int id, ApiClientCommunicationRequestModel model ) { BOClientCommunication boClientCommunication = new BOClientCommunication(); boClientCommunication.SetProperties( id, model.ClientId, model.DateCreated, model.EmployeeId, model.Note); return(boClientCommunication); }