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"])); } }
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"])); } }