Exemplo n.º 1
0
        public void Update(Models.Connection connection)
        {
            var entity = mapper.Map <Repositories.Entities.Connection>(connection);

            uow.ConnectionRepository.Update(entity);
            uow.Commit();
        }
Exemplo n.º 2
0
        public int Create(Models.Connection connection)
        {
            var entity = mapper.Map <Repositories.Entities.Connection>(connection);

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