Пример #1
0
        /// <summary>
        /// Delete User Agent Mapping by userAgentMapId
        /// </summary>
        /// <param name="userAgentMapId">Int32:userAgentMapId</param>
        public void DeleteUserAgentMapping(int userAgentMapId)
        {
            UserAgentMappingDTO userAgentMapDTO = GetUserAgentMappingByMappingId(userAgentMapId);
            userAgentMapDTO.UAM_IsDeleted = true;

            useragentmapping userAgentEntity = new useragentmapping();
            AutoMapper.Mapper.Map(userAgentMapDTO, userAgentEntity);

            ESalesUnityContainer.Container.Resolve<IGenericRepository<useragentmapping>>().Update(userAgentEntity);
        }
Пример #2
0
 /// <summary>
 /// Save User Agent Mapping
 /// </summary>
 /// <param name="userAgentMapDetails"></param>
 public void SaveUserAgentMapping(UserAgentMappingDTO userAgentMapDetails)
 {
     useragentmapping userAgentMappingEntity = new useragentmapping();
     AutoMapper.Mapper.Map(userAgentMapDetails, userAgentMappingEntity);
     ESalesUnityContainer.Container.Resolve<IGenericRepository<useragentmapping>>().Save(userAgentMappingEntity);
 }