public async Task <IActionResult> Get() { List <Segment> segs = await _segmentService.FindAll(); return(new JsonResult(segs)); }