Esempio n. 1
0
        public async Task <IActionResult> ObtenerTodos()
        {
            try
            {
                var _listaCines = await _cineRepos.GetAll();

                if (_listaCines.Count() > 0)
                {
                    return(Ok(_listaCines));
                }
                else
                {
                    return(BadRequest());
                }
            }
            catch
            {
                throw new Exception(@"Excepción no controlada");
            }
        }