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)); } }
public IHttpActionResult Buscar(int Id) { return(Ok(_seguroService.ObterPorId(Id))); }