public IHttpActionResult GetPerfis() { try { return(Ok(_repository.GetAll())); } catch (System.Exception ex) { return(BadRequest(ex.Message)); } }