public virtual ApiUserResponseModel MapBOToModel( BOUser boUser) { var model = new ApiUserResponseModel(); model.SetProperties(boUser.UserId, boUser.BioImgUrl, boUser.Birthday, boUser.ContentDescription, boUser.Email, boUser.FullName, boUser.HeaderImgUrl, boUser.Interest, boUser.LocationLocationId, boUser.Password, boUser.PhoneNumber, boUser.Privacy, boUser.Username, boUser.Website); return(model); }
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 User MapBOToEF( BOUser bo) { User efUser = new User(); efUser.SetProperties( bo.BioImgUrl, bo.Birthday, bo.ContentDescription, bo.Email, bo.FullName, bo.HeaderImgUrl, bo.Interest, bo.LocationLocationId, bo.Password, bo.PhoneNumber, bo.Privacy, bo.UserId, bo.Username, bo.Website); return(efUser); }
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); }