public DTO.Tip Get(GetTipRequest request) { try { var tip = _tipRepository.FindBy(request.Id); tip.ThrowExceptionIfRecordIsNull(); return(TypeAdapter.Adapt <DTO.Tip>(tip)); } catch (DataAccessException) { throw new ApplicationException(); } }
public Tip Get(GetTipRequest request) { return(_tipService.Get(request)); }