Пример #1
0
        public async Task <IActionResult> Get(string name)
        {
            try
            {
                var results = await _repo.GetAllProductAsyncByNameAsync(name, true);

                return(Ok(results));
            }
            catch (System.Exception)
            {
                return(this.StatusCode(StatusCodes.Status500InternalServerError, "Banco Dados Falhou"));
            }
        }