public async Task <IActionResult> GetByName(string name = "") { var result = await _usuarioApp.GetByName(name); if (result.Sucesso) { return(Ok(result)); } else { return(BadRequest(result)); } }