public void UpdateTicket(Models.TicketEmail ticket) { var entity = mapper.Map <Repositories.Entities.TicketEmail>(ticket); uow.TicketEmailRepository.Update(entity); uow.Commit(); }
public int CreateTicket(Models.TicketEmail ticket) { var entity = mapper.Map <Repositories.Entities.TicketEmail>(ticket); entity = uow.TicketEmailRepository.Add(entity); uow.Commit(); return(entity.Id); }