Esempio n. 1
0
        public virtual ApiUserResponseModel MapBOToModel(
            BOUser boUser)
        {
            var model = new ApiUserResponseModel();

            model.SetProperties(boUser.Id, boUser.Password, boUser.Username);

            return(model);
        }
Esempio n. 2
0
        public virtual BOUser MapEFToBO(
            User ef)
        {
            var bo = new BOUser();

            bo.SetProperties(
                ef.Id,
                ef.Password,
                ef.Username);
            return(bo);
        }
Esempio n. 3
0
        public virtual User MapBOToEF(
            BOUser bo)
        {
            User efUser = new User();

            efUser.SetProperties(
                bo.Id,
                bo.Password,
                bo.Username);
            return(efUser);
        }
Esempio n. 4
0
        public virtual BOUser MapModelToBO(
            int id,
            ApiUserRequestModel model
            )
        {
            BOUser boUser = new BOUser();

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