public async Task <HttpResponseMessage> ObterPorId(Guid?id)
 {
     try
     {
         var seguro = seguroService.ObterPorId(id.GetValueOrDefault());
         return(await ResponseAsync(seguro, seguroService));
     }
     catch (Exception ex)
     {
         return(await ResponseExceptionAsync(ex));
     }
 }
Esempio n. 2
0
 public IHttpActionResult Buscar(int Id)
 {
     return(Ok(_seguroService.ObterPorId(Id)));
 }