Esempio n. 1
0
        public void Update(Models.UserChannel userChannel)
        {
            var entity = mapper.Map <UserChannel>(userChannel);

            uow.UserChannelRepository.Update(entity);
            uow.Commit();
        }
Esempio n. 2
0
        public int Create(Models.UserChannel userChannel)
        {
            var entity = mapper.Map <UserChannel>(userChannel);

            entity = uow.UserChannelRepository.Add(entity);
            uow.Commit();
            return(entity.Id);
        }