コード例 #1
0
        public UserPhoneDTO Create(UserPhoneDTO modelDTO)
        {
            if (modelDTO != null)
            {
                return(UserPhoneAssembler.ToDTO(userPhoneRepo.CreateUserPhone(UserPhoneAssembler.ToEntity(modelDTO))));
            }

            return(null);
        }
コード例 #2
0
        public UserPhoneDTO Update(UserPhoneDTO modelDTO)
        {
            UserPhoneDTO returnUserPhone = null;

            if (modelDTO != null && modelDTO.UserPhoneID > 0)
            {
                userPhoneRepo.UpdateUserPhone(0, UserPhoneAssembler.ToEntity(modelDTO));
                returnUserPhone = modelDTO;
            }

            return(returnUserPhone);
        }
コード例 #3
0
        public UserPhoneDTO Update(UserPhoneDTO oUserPhoneDTO)
        {
            UserPhoneDTO returnUserPhone = null;

            if (oUserPhoneDTO != null && oUserPhoneDTO.UserPhoneID > 0)
            {
                oUserPhoneRepo.UpdateUserPhone(0, UserPhoneAssembler.ToEntity(oUserPhoneDTO));
                returnUserPhone = oUserPhoneDTO;
            }

            return(returnUserPhone);
        }