public virtual BOUser MapEFToBO( User ef) { var bo = new BOUser(); bo.SetProperties( ef.UserId, ef.BioImgUrl, ef.Birthday, ef.ContentDescription, ef.Email, ef.FullName, ef.HeaderImgUrl, ef.Interest, ef.LocationLocationId, ef.Password, ef.PhoneNumber, ef.Privacy, ef.Username, ef.Website); return(bo); }
public virtual BOUser MapModelToBO( int userId, ApiUserRequestModel model ) { BOUser boUser = new BOUser(); boUser.SetProperties( userId, model.BioImgUrl, model.Birthday, model.ContentDescription, model.Email, model.FullName, model.HeaderImgUrl, model.Interest, model.LocationLocationId, model.Password, model.PhoneNumber, model.Privacy, model.Username, model.Website); return(boUser); }