public async Task <LineDto> UpdateLine(int lineId, LineDto line) { Task <LineDto> lineDto; lock (obj) { lineDto = lineManager.UpdateLineDto(line, lineId); } return(await lineDto); }