public ActionResult <Script> GetAllScripts() { IEnumerable <Script> scripts = new List <Script>(); try { scripts = _dbAccess.GetAll(); } catch (Exception e) { _log.LogWarning(e, "Unable to find any scripts"); return(StatusCode(500)); } return(Ok(scripts)); }
//This method gets all the scripts from the database internal List <Script> GetNewScripts() { return(_dbAccess.GetAll().ToList()); }