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

            uow.TicketEmailRepository.Update(entity);
            uow.Commit();
        }
示例#2
0
        public int CreateTicket(Models.TicketEmail ticket)
        {
            var entity = mapper.Map <Repositories.Entities.TicketEmail>(ticket);

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