public async Task <ActionResult> GetTicketById(int ticketTypeId) { try { var ticketType = await _ticketTypeRepository.GetById(ticketTypeId); if (ticketType != null) { return(Ok(ticketType)); } else { return(NoContent()); } } catch (Exception ex) { return(Problem(ex.Message)); } }
public TicketTypeViewModel GetById(Guid id) { return(_mapper.Map <TicketTypeViewModel>(_ticketTypeRepository.GetById(id))); }
public TicketType GetTicketTypeById(Guid Id) { return(_iRespository.GetById(Id)); }