示例#1
0
 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();
     }
 }
示例#2
0
 public Tip Get(GetTipRequest request)
 {
     return(_tipService.Get(request));
 }