Exemple #1
0
        public virtual BOUser MapEFToBO(
            User ef)
        {
            var bo = new BOUser();

            bo.SetProperties(
                ef.Id,
                ef.Password,
                ef.Username);
            return(bo);
        }
Exemple #2
0
        public virtual BOUser MapModelToBO(
            int id,
            ApiUserRequestModel model
            )
        {
            BOUser boUser = new BOUser();

            boUser.SetProperties(
                id,
                model.Password,
                model.Username);
            return(boUser);
        }