public ActionResult <Script> GetScriptByCustomer(string customer) { IEnumerable <Script> scripts = new List <Script>(); try { scripts = _dbAccess.GetByCustomer(customer); } catch (Exception e) { _log.LogWarning(e, "Unable to find script by customer"); return(StatusCode(500)); } return(Ok(scripts)); }