Пример #1
0
 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>()));
 }
Пример #2
0
 public IActionResult GetAll()
 {
     return(Ok(repo.GetAll <SubSystem, SubSystemModel>()));
 }