Ejemplo n.º 1
0
        public IActionResult Get()
        {
            try
            {
                IEnumerable <Period> results = periodManager.GetAll();

                return(Ok(results));
            }
            catch (Exception ex)
            {
                logger.LogError($"Failed to get all periods: {ex}");
                return(BadRequest(config["Error:Default"]));
            }
        }