public IHttpActionResult EditarTipo(int id) { try { return(Ok(_tipoRep.Find(id))); } catch (Exception ex) { return(BadRequest(ex.Message)); } }