Example #1
0
        public void UpdateTicket(Models.TicketMagento ticket)
        {
            var entity = mapper.Map <Repositories.Entities.TicketMagento>(ticket);

            uow.TicketMagentoRepository.Update(entity);
            uow.Commit();
        }
Example #2
0
        public int CreateTicket(Models.TicketMagento ticket)
        {
            var entity = mapper.Map <Repositories.Entities.TicketMagento>(ticket);

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