public IActionResult Delete([FromBody] Usuarios usuario) { if (usuario.UsuarioId > 0) { return(Ok(_logic.Delete(usuario))); } return(BadRequest()); }
public IActionResult Delete(short id) { if (id <= 0) { return(BadRequest()); } return(Ok(_logic.Delete(new Usuario() { Id = id }))); }