Esempio n. 1
0
        public async Task <IEnumerable <Client> > GetByNameAsync(string name)
        {
            if (string.IsNullOrEmpty(name) || string.IsNullOrWhiteSpace(name))
            {
                Notify("Informe o nome a consultar");
                return(null);
            }

            try
            {
                return(await _repositoryClient.GetByNameAsync(name));
            }
            catch (Exception)
            {
                Notify("Falha ao obter o cliente por nome.");
            }
            return(null);
        }