public Object Post([FromBody] TblSchools school) { Payload payload = BAccount.ConfirmToken(this.Request); if (payload == null || (!payload.rol.Contains(6) && !payload.rol.Contains(3))) { return(new { result = false, info = "Não autorizado." }); } return(BSchool.CreateSchool(school)); }