public IActionResult GetFunctions() { try { var functions = new FunctionsService(_context).GetFunctions(); if (!functions.Any()) { return(NotFound()); } return(Ok(functions)); } catch (System.Exception) { throw; } }