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

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

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