Пример #1
0
        public async Task <ActionResult <Proveedor[]> > GetAsync()
        {
            try
            {
                var results = await _repository.GetProveedor();

                return(Ok(results));
            }
            catch (Exception err)
            {
                return(this.StatusCode(StatusCodes.Status500InternalServerError, "DataBase Failure " + err.Message));
            }
        }