public virtual BOUsers MapEFToBO( Users ef) { var bo = new BOUsers(); bo.SetProperties( ef.Id, ef.AboutMe, ef.AccountId, ef.Age, ef.CreationDate, ef.DisplayName, ef.DownVotes, ef.EmailHash, ef.LastAccessDate, ef.Location, ef.Reputation, ef.UpVotes, ef.Views, ef.WebsiteUrl); return(bo); }
public virtual BOUsers MapModelToBO( int id, ApiUsersRequestModel model ) { BOUsers boUsers = new BOUsers(); boUsers.SetProperties( id, model.AboutMe, model.AccountId, model.Age, model.CreationDate, model.DisplayName, model.DownVotes, model.EmailHash, model.LastAccessDate, model.Location, model.Reputation, model.UpVotes, model.Views, model.WebsiteUrl); return(boUsers); }