public ActionResult PutSivecAuth([FromBody] LoginSivec login) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var autenticado = scrap.AuthCadesp(login.usuario, login.senha); if (autenticado == true) { return(Ok()); } return(BadRequest()); }
public ActionResult PutCadespAuth([FromBody] LoginCadesp login) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var autenticado = scrap.AuthCadesp(login.login, login.senha, x => x.Dispose()); if (autenticado == true) { return(Ok()); } return(BadRequest()); }