public async Task <ActionResult <Line> > Put(string lineName, [FromBody] LineDTO request) { var line = await _service.GetByLineNameAsync(lineName); _service.ClearRelationships(request, line); line = await _service.UpdateAsync(line, request); return(Ok(line)); }