public async Task <IEnumerable <Provider> > GetByNameAsync(string name) { if (string.IsNullOrEmpty(name) || string.IsNullOrWhiteSpace(name)) { Notify("Informe o nome a consultar"); return(null); } try { return(await _repositoryProvider.GetByNameAsync(name)); } catch (Exception) { Notify("Falha ao obter os fornecedores por nome."); } return(null); }