public HttpResponseMessage MeuIngresso(UsuarioModel usuario) { if (usuario == null) { return(Request.CreateResponse(HttpStatusCode.Unauthorized)); } try { var ingresso = movieDAO.BuscarIngresso(usuario.Usuario); return(Request.CreateResponse(HttpStatusCode.OK, ingresso)); } catch (Exception) { return(Request.CreateResponse(HttpStatusCode.BadRequest)); } }