public async Task <ActionResult <List <PathModel> > > GetAllPaths() { List <PathModel> paths = await _pathService.GetAllPaths(); //if (paths == null) // return NotFound("Couldn't find any paths"); Log.Information("successfull to add all paths {@paths}", paths); return(paths); }