public async Task <bool> RemoveLine(int id) { Task <bool> isDeleted; lock (obj) { isDeleted = lineManager.RemoveLineDto(id); } return(await isDeleted); }