public async Task <IActionResult> Run( [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "getall")] HttpRequest req, ILogger log) { log.LogInformation("Got all subsystems."); return(new OkObjectResult(await repo.GetAll <SubSystem, SubSystemModel>())); }
public IActionResult GetAll() { return(Ok(repo.GetAll <SubSystem, SubSystemModel>())); }